Hi all. I am building a very simple attendance scanning app. When the instructor scans a bar code it populates a gallery and a share point list.
All this is working fine. However i want the app to have a blank gallery every time the instructor opens it, in other words i dont want them to see the previous days records in the app.
I cant seem to get the gallery to clear all its data.
Thanks for the help
Paul
Solved! Go to Solution.
What is your Items property for the Gallery?
If you are only concerned with showing "today's" records, then your formula should be similar to the following:
Filter(yourDataSource, Created >= Today())
The above is based on the created date, so specifics would be based on your list columns as to what you want to filter on.
I hope this is helpful for you.
Filter the gallery to only show Today
Filter(DataSource, Date = Today())
If you need additional help please tag me in your reply and please like my reply.
If my reply provided you with a solution, pleased mark it as a solution ✔️!
Best regards,
Gonçalo Nogueira
Check my LinkedIn!
Check my User Group (pt-PT)!
Last Post on Community
My website!
On the OnStart function create a now variable
Set(varNow; Now())
Then filter the items
Filter(
SPList;
varNow < DateColumn
)
Thanks for your reply. i have added the filter, however it is now showing no information as the bar codes are scanned?
Filter(DataSource, Date = DateAdd(Today(),0,Days))
If you need additional help please tag me in your reply and please like my reply.
If my reply provided you with a solution, pleased mark it as a solution ✔️!
Best regards,
Gonçalo Nogueira
Check my LinkedIn!
Check my User Group (pt-PT)!
Last Post on Community
My website!
unfortunately that doesn't seem to be working.
this is all i see when using the app. This is after scanning. the items are still going to the sharepoint list.
What is your Items property for the Gallery?
If you are only concerned with showing "today's" records, then your formula should be similar to the following:
Filter(yourDataSource, Created >= Today())
The above is based on the created date, so specifics would be based on your list columns as to what you want to filter on.
I hope this is helpful for you.
Thanks a million for that. It is working fine now. It is just showing today's scanned info which is all i need.
Thanks for your help.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
182 | |
52 | |
41 | |
36 | |
29 |
User | Count |
---|---|
242 | |
82 | |
71 | |
69 | |
66 |