Hello,
I’m working on a scenario in Glideapps where I need to automatically mark the isRegistered boolean as true for both “Class 1 - Group 1 Part 1” and “Class 1 - Group 1 Part 2” when a user signs up for either one. These classes are stored in separate rows.
Currently, I can mark them as isRegistered = true one at a time using a button action, but I’m looking for a way to automate this so that when a user registers for one session, the isRegistered boolean for the other session is automatically set to true.
Would anyone have suggestions on how I can automate marking the isRegistered boolean for both classes?
Thanks in advance for your help!
Assuming Class1-Group1 is the specific grouping that goes together, you can create a self relation or query linking the Class and Group to themselves. Then create a Rollup counting the number of True values in the isRegistered column through that relation or query. Then create an IF column that checks if the Rollup is greater than 0 and return ‘true’ if it is. The IF column should show as true, for everything in the same Class/Group if isRegistered is checked for just one of them.
Is that isRegistered column a user-specific one, placed in the Class/Group tables?
1 Like
@ThinhDinh - Yup, it is user specific.
Is it always just 2 parts at a time, or do you have cases where you would have more than 2 parts?
@ThinhDinh - Hi, It’s always 2 parts at a time