When the first image is clicked, the GroupFocus with the different buildings shows.
When 1 of those pictures is clicked, the green GroupFocus shows.
I want in this green GroupFocus a repeating group with a “Listings” of only the buildings from that type.
How do I do this? The data is all correct, I just need to know how to display the different types precisely.
But then I’d have to set a state for all types of buildings and create a RG for each type?
And also how can I set a state for every single building if I can only do it for the first one in a RG?
Also if I do “set a state…” its with Y/N and it needs to be toggle function.
So for example when I click the icon “Apartment”, which is a “Real Estate Type” I want a repeating group shown, in a GroupFocus (toggle), with all the “Listings” that contain a Real Estate Type “Apartment”.
If I click on “Apartment Building” I want a GroupFocus to be toggled on with a repeating group in it that shows all Listings with a Real Estate Type “Apartment Building”.
Do you know the solution for this? Seems easy but I can’t seem to make it work.
The Group focus would make it so that the the previous Real Estate Type would disapear.
When a user clicks the group in the first repeating group, you’ll want to set state of an element. I’d recommend creating a whole new element somewhere that is hidden, with a name that is easily findable in case you need to modify it later. Some people put #in front of the name to indicate it has custom states. Thats on you to find what works for you.
Then, in your search in the second repeating group, you can do where Real-Estate Type = [Element]'s Real-Estate Type.
I was typing this out as I saw @caseys response, so I suppose I just echo their solve method, and would recommend you follow their steps.