Maciej Szleminski
Hi,
I have a table with buttons that I want to use instead of table selections, so that user can just click one of the buttons, in the row he wants to select, to proceed to the next coach.
I have the button in the table, and on the human service diagram the button is bound to the boundary event exiting the coach and moving to the next one.
I also know that by using button’s onClick with me.ui.getIndex() i can get the index of the clicked button – but that button doesn’t cause the coach to move to the next screen.
So, how can I bind the button correctly so that the next coach is invoked when either of the buttons in the table is clicked?
Have a great day,
Maciek
SPARK Support
Hi Maciej,
I set up a test scenario with the table button bound to the boundary even in the diagram view. Then used a data control bound to a private variable to contain the index of the records. For the button’s click event, the following code will set the index and trigger the boundary event:
${../Data1}.setData(me.ui.getIndex());return true;
Please let me know if this solves the issue.
Regards,
Stephen P.