Inside each RG Service Instance Cell, I have a RG of Service Task Types (A service may have 1 or more Task Types).
Inside each RG Service Task Types Cell is a button where a user can add a new Line Item (Task). When the user selects the button, I need to know the outer Service Instance to save into the Line Item being created. Following is the UI to give you an idea (when I click the Blue Button, I need to now the RG Service Instance ‘Thing’. Clicking the button creates a Line Item, however, it is not populared with the Service Instance from the ‘Group Retrieving Service Instance (Musician)’ custom state.
I have my Maestro within the RG Service Instances, and my Musician within the RG Service Task Types. I am using empty Groups with Custom States to store the Service Instance that I need to access from within each RG Service Task Types Cell.
I actually got this to work, but it was more due to an error - a bit embarrassing
Basically, in the “run in each cell” workflow I was setting the State, but in the Create in final workflow I was trying to set based on “Group Retrieve Sending Instance (Musician)”'s Type, not the Custom State I was setting…
@Newed , for my own knowledge could you expand a bit more on this comment: “The Maestro element is indifferent, you can have it anywhere on the page. But in fact, in this use case you don’t even need it.”
If I had the Maestro outside the “RG Service Instance”, doesn’t that mean it wouldn’t be able to see each Service Instance??
Great to hear you’ve resolved the issue with associating the newly created Line Item to the correct Service Instance. It’s common to encounter such challenges when working with nested repeating groups in Bubble.io.
Regarding your question about the placement of the Maestro element: the Maestro serves as a controller to trigger actions within the Musician elements inside repeating groups. In your specific use case, since each Musician is already placed within the cells of your repeating group, the Maestro doesn’t need to be inside the repeating group to function correctly. It can be placed anywhere on the page, and it will still effectively communicate with the Musician elements.
Hope this proves helpful, if you will have any further questions or need additional assistance, feel free to reach out to us.