I’m trying to display specific data in a repeating group with this workflow:
‘When a group is clicked - show an element.’ This element has to match the group on the left hand side. I.e., They’re competitors. Once ‘TeamTailor’ is clicked, show the relevant ‘TeamTailor’ popup.
To show specific data in a RepeatingGroup you must alter its data source. You can do that:
With the Display list in a repeating group action
If the RepatingGroup is fed with another element contents, e.g. Group A's Objects, you can alter those contents directly, e.g. with the Display data in a group/popup action, therefore changing the RepeatingGroup’s data source itself.
I might have misunderstood your question, but you seem to be just showing a hidden element with that Show Group Competitor... action, which does not make much sense if you look for showing specific data in a repeating group.
A RepeatingGroup only accepts lists as data source. They may be of different nature (DB records, options of an OptionSet…) but always lists. Even if they have only one element, they must be lists.
If you check the RepeatingGroup’s data source you’ll see that it’s a list.
As per your two screenshots, the data sources are probably Do a search for... expressions returning the elements you see on screen.
I don’t really understand why you’d use a RepeatingGroup for showing just one item, but you can use the :converted to list operator to turn a single element into a list (with just that one item)
Hi @ademiguel, thanks for the response again, you#ve been very helpful. I’m trying to find the easiest way to do this. If that means not using a Repeating Group to display the ‘Competitors’, then that’s what I’ll do.
@ademiguel, what would be the easier/best way to do this?
For more context: A User adds a ‘Competitor’ to their Account they’re working on. This ‘Competitor’ is then displayed on the left-hand side once added. Once that ‘Competitor’ is clicked on, the relevant element becomes visible with that ‘Competitors’ data from the ‘Add Competitor’ form.
Would the structure be a List of entries in the database?
The left-hand side list, yes, since you are showing a list of Competitor’s associated to the user’s Account. I think you already have this so I won’t dive in.
To show the clicked Competitor’s data, you clearly don’t need a RepeatingGroup, nor any list of entries. You need a Group, fed with that single Competitor.