Has anyone created an app for teachers timetables or anything similar?
I want to make an app for my teachers where our admins can add classes and assign them to teachers, and each teacher can then see their timetable, how many hours they are working and how many free time they have left.
Any ideas or guidance is much appreciated.
Hi @Mo_Islam :
Because I am not sure what your specific needs are, so I made a simple demo, which has the following functions:
I'v made a test for your reference:
1\Create a list in SharePoint
|Title||Single line of text|
|Teacher||Single line of text|
|StartTime||Date and Time|
|Endtime||Date and Time|
|course||Single line of text|
2\Create a canvas app which has two screens(Screen1/Screen2)
1\Add a label
"Hi " & User().FullName
2\Add a data table
Filter(teacherstimetable,User().FullName = Teacher)/*Filter records based on current user*/
3\Add a label
Sum( ForAll( Filter( teacherstimetable, User().FullName = Teacher ), DateDiff( StartTime, Endtime, Minutes ) / 60 ), Value ) /*Calculate the time of class*/
4\Add a button
If( User().FullName = "XXXXX",/*Determine if the current user is an administrator, if it is then navigate to Screen2*/ Navigate(Screen2) )
5\Add a from(Form1):
6\Add a button:
Thank you so much @v-bofeng-msft . This is a nice app which I will definitely implement.
I was wondering if there was a way to make timetables visual as per attached automatically from the solution you have shown.
Hi @Mo_Islam :
I am afraid there is currently no control that can support a visual timetable similar to the screenshot you provided.
In addition,you can add an idea in below forum if you need this feature:
Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.
Did you miss the call? Check out the Power Apps Community Call here.
We are excited to announce the Power Apps Super Users!
Check out our new profile badges recognizing authored solutions!