Help with Data Transfer Orchestra Plugin

Hi,

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.

Can you guide me on how to achieve this?

Thanks!

I assume you mean Reusable Element?

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?

You can use BNS Global Custom State plugin. It allows you to communicate through RGs and REs very simply.

Here’s a quick demo.

1 Like

Yes, that’s right. Sorry for the mixup.

It’s a Reusable element (parent) that contains a repeating group. Inside the repating group I hava another Reusable element (child).

I want to pass a custom state that is being triggered inside the child back to the parent.

Personally, I just use the ToolBox plugin for this, with a JavaScript to Bubble element to hold the value.

Just add the JStoBubble element to the Parent (make sure it’s visible) - and check the Publish value box).

Then, just use a run JavaScript action in the child RE to publish the value to the JStoBubble element.

(you can do the same thing with various other plugins, but there’s usually some additional steps involved).

I will try that! Thanks. I´l let you know how it goes.

Okey, so I did this:

  1. On my parent: I added the JS2Bubble in the same call es my Child.

  2. In my Child I added this Workflow:

Does it look right? And where do I go from here to pick up the date I am passing in the workflow of the parent?

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)

Ok. So I moved the JStoBubble to the top in the element tree-

Thanks for your patience Adam.

I made the changes, but there is obiovisly something I am missing…

So I did this changes:

  1. On my Parent I moved the JsToBubble to the top hirarchy and named it ´passingDataFromVolumeChild´:

  2. On my Child I updated the workflow Run javascript:

Does it looks right so far?
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.

Almost…

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.

1 Like

Thanks, Adam! That was incredible. I’ve been struggling with this for a couple of days, and you nailed it. I owe you a beer! :beers: :beer: :beers:

1 Like

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? :slight_smile:

Yeah you can use the same receiver (the same JStoBubble element).

1 Like

Thanks. So I just reuse both the receiver element on the Parent and make the same WF in the child2?

  1. Parent: (Js2Bubble with suffix: passingDataFromVolumeChild)
  2. Child 1: Workflow: ´bubble_fn_passingDataFromVolumeChild(‘date/time: formatted as 2024-08-10’)´
  3. Child 2: Workflow: ´bubble_fn_passingDataFromVolumeChild(‘date/time: formatted as 2024-08-10’)´

Yep.

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.

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.