web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Simple Attendance App ...
Power Apps
Answered

Simple Attendance App - Date Picker

(0) ShareShare
ReportReport
Posted on by 16

Never done anything like this before, very new to PowerApps, but my organization (an afterschool program) has been struggling with attendance logistics for years. A simple App would solve this. Here is what I am attempting to do: I want an app that allows teachers to take attendance for a given class in as few clicks as possible.  

 

I think I have figured out how to do that with the actual taking of attendance, but the problem I have is writing the date to the data source.  In most cases, today's date should just get written to the data source. But regularly, teachers forget to take attendance and have to go back to previous days to log the attendance from memory.  

 

What would you suggest as the best way (fastest/least amount of clicks) to set the date.  Currently, when a particular class is chosen the students in that class appear in a gallery.  In the gallery there is a check box that allows the teachers to indicate which of each student is present or absent.  I plan to have it set up to do something like, 'On Check' patch in attended.  

 

But how do I handle the date? Again, most days it would just be today's date, but other times, the teacher might need to choose a previous date and retroactively take attendance.  I don't want them to have to choose a date for each individual student in the gallery, ideally I'd like them to choose a date and use that for all of the students on that day.  

 

Any ideats would be greatly appreciated.  I figure it shouldn't be that difficulut, but like I said, I've never made anything with PowerApps before so I am trying to teach myself here.  Thanks so much!

 

Categories:
I have the same question (0)
  • Moreshwar Profile Picture
    135 on at

    Hello,

     

    You can keep datepicker outside the gallery may be at the top and the date selected in that Datepicker can be used to patch selected gallery items.

  • cmurfree Profile Picture
    16 on at

    Really? That would be perfect, but what I am struggling to understand is two-fold:

    • What is the function that would call the selected date from the date picker?
    • What is the trigger to call that function. Meaning with what action taken by the user do I trigger the above function to call and ultimately patch in the chosen date?

    Thank you!! 

  • Verified answer
    Moreshwar Profile Picture
    135 on at

    OnSelect of datepicker store its selected value in a variable.

    OnCheck of your checkbox in Gallery write your patch function with variable. Something like Patch(DataSource, LookUp(DataSource, ID=selectedID),{date:varSelectedDate})

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,041

#2
11manish Profile Picture

11manish 676

#3
Valantis Profile Picture

Valantis 655

Last 30 days Overall leaderboard