So I have a list of Items (called myItems)that come from SQL displayed in a gallery and I let users select items by checking a checkobox in the gallery template. The list has a primary key ID, When the item is selected , i collect it to a second collection called selectedItems.
Now i have buttons that let the users perform process on the selected or the unselected items. How do i get a list of unselected items (i.e. items that are in myItems but not in selectedItems).
I thouht this would be easy with a forAll statement so i started coding:
ForAll(myItems,If (LookUp(SelectedItems,ID=ID,true,false),Collect(unselecected,t.....
But then i realized that i cannont compare the ID of the selectedItem with the item from the forall loop because it doesnt give us a ThisItem object to work on.
Anyone have ideas how to do this?
Solved! Go to Solution.
Hey @RussellGove
Is there a boolean that you pass if something is checked or not, if so then you could collect the unchecked equals false ones (unselected items).
Kind regards
Tom
If this reply has answered your question or solved your issue, please mark this question as answered.
Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up.
Hey @RussellGove
Is there a boolean that you pass if something is checked or not, if so then you could collect the unchecked equals false ones (unselected items).
Kind regards
Tom
If this reply has answered your question or solved your issue, please mark this question as answered.
Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
188 | |
56 | |
50 | |
37 | |
36 |
User | Count |
---|---|
270 | |
91 | |
83 | |
76 | |
75 |