i have a checkbox on top of a repeating group. how do i make the checkbox on top check all the checkbox in the repeating group. tried using custom state method but cant manage to get it right. heres the screen shot of my apps
Your RG must be in a group (call this group “Resetable Group”)
Set the status of the Checkbox in the RG to “Dynamic”.
Define a custom state in your RG
Ex: State name = Selected
Type: User (and make sure this is a list)
If you organize your workflows as follows, you get the result you want.
Check Box which in the RG
This checkbox is checked >Set State Element: RG
Custom State: Selected
Value = RG selected User:plus item Current Cell’s User
and
This checkbox isn’t checked> Set State RG Selected
Value = RG selected User: filtered
List Filter
uniqueid <> Current Cell’s User uniqueid
To select or deselect all
Select all checkbox is checked (outside the RG)
Set State> RG Selected
Value: RG’s List of users
Select all checkbox isn’t checked
Reset data “Resetable Group”
Set State “RG Selected”
Value: “empty”
I almost forgot.
Dynamic status for checkbox (in the RG)
RG Selected user contains Current Cells User (this produces a yes / no)
this works but im stuck at the select all button out side the repeating group. i want to make all the checkbox in checked . when i check the checkbox outside the group also, add all of the data in the repeating group in the temp list of a custom state.
If the number of checkboxes is dynamic you can replace 4 with do a search
for x:count. I made the example like that because it will work faster without searching.
Acap this has been solved for you. Copy the example, it’s not hard.
Our methods are the same I only say simplified because contain/ doesnt contain is more human readable. & except for count is 4/not 4. I made that demo expecting the checkbox count not to be dynamic. So really it is perfect for that.
Of course to make search for data count is slower than looking at the repeating group state count.