Manipulate elements of repeat container using Javascript

1
0
-1

Hi,

I'm trying to manipulate two select widgets in a repeat container using the UI Designer in Bonita BPM 7.8.3. The behaviour that I want to implement is:

  1. In the first select widget I choose a country from a list stored in a variable.

  2. Based on the value of the country, I want to load in the second select widget the states of that country . I'm trying to use a Javascript Expression to implement it, but I can not access to contextual variables (e.g.: $collection, $item, $index) in the Javascript Expression (I can only access to $data).

Could anyone tell me how could I access to this variables or if it's another way to implement it?

Thanks.

2 answers

1
0
-1

Hi, i'm having this same problem. Have you resolved it??

Thanks

1
-1
-1

Hi,

We've made a fragment in our container collection, then we can call some javascript without being annoyed with $item variables.

Fabien.

Comments

Submitted by marcos.laurito on Wed, 09/30/2020 - 17:41

Can you explain this solution a little bit further?

Thanks

Notifications