I've created a PowerApp using a SharePoint contacts list as the data source. I'm trying to filter the list by either entering text into a text input field or by clicking a button that corresponds to a letter in the alphabet or a 'See All' button to toggle back to showing all entries. I can't figure out which formula to use in the 'OnSelect' property of each letter button, as well as the 'See All' button. Here's what I'm trying to create:
Any help would be greatly appreciated!
Solved! Go to Solution.
Don't use OnSelect and buttons. Just use two galleries:
For "See All" button - you can also use G1 - but you would need to put empty string there and add logic to display "see all" if Value is blank - or - create a separate button and set additional contex variable (call it here: "display_all_contacts") onVisible to true. Then "See All" button would also reset it to "true" but OnSelect on G1 should set it to false. Then add another clause within If under Items of G2 to show entire contact list if "display_all_contacts" is true.
Mick
Don't use OnSelect and buttons. Just use two galleries:
For "See All" button - you can also use G1 - but you would need to put empty string there and add logic to display "see all" if Value is blank - or - create a separate button and set additional contex variable (call it here: "display_all_contacts") onVisible to true. Then "See All" button would also reset it to "true" but OnSelect on G1 should set it to false. Then add another clause within If under Items of G2 to show entire contact list if "display_all_contacts" is true.
Mick
Check out new user group experience and if you are a leader please create your group
Did you miss the call?? Check out the Power Apps Community Call here!
See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.
User | Count |
---|---|
275 | |
229 | |
79 | |
37 | |
37 |
User | Count |
---|---|
351 | |
232 | |
125 | |
70 | |
55 |