What I understood, that you are trying to publish an event on row selected event from a table with the row index ?
If yes, then in the "On row selected" event of the table, write -
me.ui.publishEvent("RowSelected", row.recordIndex);
Here "RowSelected" is the event key and
row.recordIndex
will return the current selected row index.
Then, you can use an "Event Subscription" control and in the "Event name" configuration option, put "RowSelected". Now, from the "On published event" of the "Event Subscription" control, you can alert the current selected row number like -
alert("Current index : "+me.getEventData());
------------------------------
Atanu Roy
Solution Architect
Salient Process
------------------------------
Original Message:
Sent: Fri June 24, 2022 10:04 PM
From: anh dx
Subject: can i get id from view to coach guys??
i learning bpm so i dont no how to get it
i was using publishEvent so when i run script in coach but method selectedRow() is undefined so how do i do? thanks guys so much.
that script in clickEvent in table
me.ui.publishEvent("onRowSelected", me.ui.getIndex());
:D
------------------------------
anh dx
------------------------------