Nov 04, 2021 09:16 PM
I am a long time user of AT. However, I need some assistance.
I do operations for a school. I need an elegant way to create the schedule automatically for the classes.
I want to input the date of the first class, the days and times they have the classes every week, and the number of lessons in each learning period.
I want to automate it, so at the click of a button all the lesson records are created based on the conditions listed above. Is it possible?
Nov 05, 2021 12:52 AM
Hi Finlay,
I did something similar in the past, copying classes + linked students from an existing one and according to some parameters that the user should introduce: start-end of the classes period (Sep 1st to Jun 30), recurrent days (7, 14…), include or not the students and teachers
The complexity of the situation cannot be handled by a simple automation. This is what I did:
These selection of data can be added to the code block in different ways, it’s not straightforward but doable. You can experiment with the input functions as (await) input.buttonsAsync, input.textAsync, input.tableAsync, etc. The API documentation is good enough.
Once the user validated the parameters, the code worked as
It took me a while to set everything up, but in the end it worked fine and saved a lot of time to my users.
If you would like more detail, let me know and I can prepare a deeper explanation.
I hope this helps, good luck