Announcements
I have a complex Items statement for a Gallery. I would like to apply a ForAll statement separate from the main statements driving Items, for sake of keeping things more orderly. I know I can wrap the statement around the entire items statement as "source" for the ForAll(), but that gets so ugly. I was hoping to apply ForAll, using Gallery.AllItems as the source. Is this possible?
@martinav
Yes, you can use a ForAll on the AllItems of a Gallery:
ForAll(yourGallery.AllItems, ...
You can even filter by conditions in the Gallery - such as a checkbox:
ForAll(Filter(yourGallery.AllItems, checkBox.Value), ...
I hope this is helpful for you.
I think my issue was I was doing this after the main statement in the Items control of the gallery. I'm guessing that has circular logic. I'm guessing this needs to be in a button OnAction or something outside of the gallery.
I have found a way to re-arrange my items to make it simpler anyway. I'll close this and revisit later if needed.
Ah yes, I had assumed you had this on a button or some other action. Right, you would not have this in the items property of the Gallery as that would definitely be circular.
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 296 Most Valuable Professional
11manish 224
Valantis 181