I’m trying to transfer data from one Repeating Element (RE) to another.
I have a Parent RE, which is a Repeating Group (RG), that contains a Child RE.
I’ve downloaded the Orchestra plugin, but I’m not entirely sure how to set up my workflow to make this work. Specifically, I want to retrieve a custom state from the Child RE and display it in the Parent RE.
I have a Parent RE, which is a Repeating Group (RG), that contains a Child RE.
Repeating Groups (RGs) can’t be Reusable Elements (REs)… so I assume you mean you have a Repeating Group inside a Reusable element? And then inside the RG cell, another Reusable Element?
Specifically, I want to retrieve a custom state from the Child RE and display it in the Parent RE.
Can you give an example of exactly what you’re trying to do?
Don’t add the JStoBubble element inside the RG (that will create multiple instances of it, and it won’t work - plus it’s not what you want to do)
Add it directly inside the Parent element (so there is only one of them on the page).
Also, you need to add a suffix (this must be unique on the page).
so, for example: myBubbleFunction (call it whatever you want but it can’t contain spaces)
Then use that suffix as the function name when calling it from a run Javascript action (as the expected value is a ‘text’, it needs to be enclosed in single or double quotes):
bubble_fn_myFunction('current date/time: formatted as 2024-08-10');
Then you can access the value directly from the JsToBubble element in the expression builder (from the Parent RE)
The suffix you add is just the last part of the bubble function name.
The full function name will be bubble_fn_yourSuffix
So in your case:
bubble_fn_passingDataFromVolumeChild('date/time: formatted as 2024-08-10')
I> didn’t get the last step… How do I access it? e.g with Do when JStoBubble is not empty ?
I need to Display the date in extended ISO somewhere on my parent.
Assuming that will be in a text element, your dynamic text just needs to use the expression JsToBubble (i.e. the Name of the JS to Bubble element)'s value.
One more thing, Adam. If I want to send the same value but from another RE than the Child, but from Child 2. Can I use the same receiver in the Parent or do I need to duplicate it?
Unless you need to store multiple values: in which case you can either use multiple jstobubble elements, or use multiple values on a single jstobubble element.