Hello All,
In Community 7.7.3 I have a button within Collection Container.
How can I identify which button instance was clicked?
I just need to identify the collection item index to decide which item to edit in the next activity form.
Best regards!
Hi,
When the button is clicked does it submit the task?
Antoine,
Thank you for your response.
It does submit the form, but if I use $item in the "Data sent on click" field, it sends no data. The same if I use $item.persistenceId.
It only works well if I send $item, but what I really need to receive is $index.
Regards.
For example if you have declared a process or step contract that is expecting an integer and that is named buttonIndex you just need to configure your button "Data sent on click" to be: {"buttonIndex": $index} that should do the trick.
buttonIndex
{"buttonIndex": $index}
Comments
Hi,
When the button is clicked does it submit the task?
Antoine,
Thank you for your response.
It does submit the form, but if I use $item in the "Data sent on click" field, it sends no data. The same if I use $item.persistenceId.
It only works well if I send $item, but what I really need to receive is $index.
Regards.