Manipulate elements of repeat container using Javascript

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.

Hi,

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

Fabien.

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

Thanks

Can you explain this solution a little bit further?

Thanks