Hi there,
After getting to know the UI Builder to create a UI and represen data (thanks to this great community) my next step is (complex) filtering.
In my app I have a list of items. Let’s say Activities. Each activity consists of a list of tasks.
What I want to achieve is the following
- At the left of the screen I have a repeating group with all the activities. Each record has a show/hide icon. Default everything is shown.
- in the other part of the screen I want the total set of tasks of al the Activities that are shown.
- When I hide an Activity I also want to directly filter my task list by excluding the tasks of the hidden activity
- When a activity is set to show again, I want the refresh the task list again by including all the tasks of that activity
- This filtering functionality should be applicable to each distinct activity record.
I am thinking about using custom states for each activity (shown= true/fals). Then I want to search tasks where parent activity has stat shown is true
But I don’t know (if possible) how to make a custom state dynamically specific for each distinct activity record. And then how to filter it exactly.
Can someone give some hints or is there a example available that mimics this scenario?
Thanks!