Access parent info in a nested collection

1
0
-1

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-colle...

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

1 answer

1
0
-1

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

Comments

Submitted by ben.bowley on Thu, 07/20/2017 - 17:36

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

Notifications