Hello,
I've built a Select All Checkbox to select all eligible checkboxes in a Gallery (the selected items must have the same id), but now I want to limit the maximum number of checkboxes that will be checked after clicking in the Select All Checkbox (the limit will be 200 checkboxes).
Here are some images before/after the select all. The Select All Checkbox is the upper one.
To check all eligible checkboxes I'm using a ForAll to go through all Gallery items and using a Collect together with an if to add all items that will be checked, like this:
ForAll(
Gallery.AllItems;
Collect(
CollectionName;
{
someColunm: If([CONDITIONS];
[SomeValue]
)
}
)
);;
I wonder if there is a way to limit the size of the Collection, to break the ForAll loop, or to remove some rows of the Collection after the ForAll.

Report
All responses (
Answers (