Access parent info in a nested collection

Hi, Im using Bonita 7.3.3

In a form, I put a three nested collection container, similar this example:

http://documentation.bonitasoft.com/?page=repeat-a-container-for-a-collection-of-data

All is OK, but I need fromn the child collection acces to the parent item info, because I load a selector in the child container with the result of another selector at parent container. Using AngularJS, it is easy using $parent.$index, but seems that it is not working for Bonita.

Thanks

Hi,

I think to handle your use case you can rely on the javascript variable since they have a global state.

Let’s say the selector in the parent container stores the selected value in a variable called parentSelection. The child will access to this value and can filter its own selector based on the parentSelection variable value.

Cheers

Do you have an example of how this can be done?