Help with saving multiple items in RG! Orchestra plugin?

Hey all

I’m needing some guidance…

I currently have mine set up according to: Orchestra Plugin 101 help - #2 by DjackLowCode - the only difference is I have 2 Maestros (A and B)

It works as expected, then it doesn’t, and continues like this… each time it doesn’t work, I’m hitting the below error:

Here is that workflow and step:

(FYI - I’ve set the Maestros state as a number, capturing the Musicians current cell’s index. I then set the Maestros state as the ‘cell position to trigger’)

And here is the initialization workflow:

Please help - it’s driving me crazy! I’m not sure what’s going on?..

That is the problem likely.

Firstly, the Maestro needs to be outside of the repeating group, so your use of Maestro B’s cell as the cell position to trigger on the Trigger Musicians workflow action will not be possible, since the Maestro needs to be outside the RG, the Maestro element will not have a cell…unless, that is a custom state value that you are setting from the Musicians current cell’s index…but that of course also won’t work because the musician element will be in every single cell, since the musician element is placed inside of the repeating group, and so, for each cell of the repeating group, there will be a musician element, which means, the reason it works and then doesn’t is because it will take the musician element in the first cell but doesn’t then shuffle through every other cell.

Not really, there is a glaring difference which is the attempt to use the current cell number of the musicians element, which is the issue as explained above.

If the reason you were attempting to use the musicians cell number as the cell position to trigger is because you want to trigger the action in ALL cells, then simply set the value for Trigger every cell from no to yes. If there is a need to trigger a specific cell number, think of another way to reference the correct cell number.

1 Like

Thanks for the response @boston85719! I should mention that the purpose of this was to capture text from a nested RG, and on button click (outside of RG), the text would be saved to DB.

In saying this, currently my Maestros are outside of the RG, as below:

And re:

unless, that is a custom state value that you are setting from the Musicians current cell’s index

That’s correct - current cell’s index of Musicians is a custom state, which is then sent to the corresponding Maestro as it’s state (cell) number.

Re:

won’t work because the musician element will be in every single cell, since the musician element is placed inside of the repeating group, and so, for each cell of the repeating group, there will be a musician element, which means, the reason it works and then doesn’t is because it will take the musician element in the first cell but doesn’t then shuffle through every other cell.

If there is a need to trigger a specific cell number, think of another way to reference the correct cell number.

As a workaround to achieve the functionality I’m after, I’ve managed to get something working by using JS2Bubbble elements, and using custom states to pass the data from the nested RG JS2Bubbble element (A), to a JS2Bubbble element (B) outside of the RG.

I then reference B in my workflow to ‘create new thing’. That all works as expected, although it’s only creating new thing on one item/cell of the RG, when the idea is to ‘create new thing’ on multiple cells of the nested RG, not all though - so a multi-select functionality.

To achieve this, would I need to have an element in the nested RG with a custom state to of yes/no when clicked, send that state’s value to the RG element and then change all the custom states of the JS2Bubbble element to ‘list of items’? Not sure if I’m on the right track with that…

This for some reason is only creating one of the multiple cells selected… what am I missing here?

Thanks again!

1 Like

Same issue I pointed out as before then…need to change the cells value to target away from the custom state of the musicians cell number and just run it to trigger all cells

And you do not need the JS to bubble to make this work properly.

The workaround that I’ve mentioned excludes the use of Orchestra plugin altogether as I can’t find another way to reference the correct cell number, hence the JS2Bubble elements.

In saying this, in this workaround, I’m still unsure of how to trigger the creation of multiple selected cells, and not just one cell, or all cells. Sounds like I’ll still need another way to reference the correct cell number?

Very confused which path to take here and the solution…

you have to either decide if you are going to run in ALL cells or specific selected cells. ALL cells is easy as I’ve already given the details on how to achieve…if it is only specific selected cells, a User MUST have an ability to select which cells through a button or an icon, so when they press the button or icon set a custom state which will be a list of numbers and save to the custom state the cell index of the selected cell then your workflow action for cells to target will use the custom state list

1 Like

I’m after specific, user-selected cells. Like a multi-select option.

So re. the above - on the RG holding the text I want to save, I have RG custom state of type list of text called Selected cell.

There’s a button for the user to click, which then sets the state of the RG group’s Selected cell (type list of text) and adds the parent groups text.

I pass ‘RG group’s Selected cell’ value onto JS2Bubble B as seen above in step 3.
Then I reference and parse JS2Bubble B’s value in my ‘create new thing’ workflow.

With this said, it only creates 1 ‘new thing’ and not the multiple selected cell’s I want. So re:

they press the button or icon set a custom state which will be a list of numbers and save to the custom state the cell index of the selected cell then your workflow action for cells to target will use the custom state list

Do I need to add another custom state to my RG as list of numbers type? And in my workflow, how do I action ‘cells to target’ and use the custom state list?

I hope I’m being clear enough!

Yes you have correct understanding of process I explained when using orchestra plugin.

1 Like

This is helpful, thank you for building on this problem.

The workaround that I’ve mentioned above excludes the use of Orchestra plugin altogether

Is it the same process when not using orchestra plugin and just using custom states to pass values?