Is there a way to retrieve data from a table on user action such as double click?
In another words, can you capture the row/column of the table which the user clicks using personas?
I am looking to use this value to get some information for the user and display it on a text field.
thanks
The table object has a couple of events - onCellDoubleClick and onSelect - that you can use for this. The selected cell or row is available to the called script. See this Wiki page for further information on these and other events available to Personas scripting: https://wiki.scn.sap.com/wiki/display/Img/Available+Events+in+Scripting+-+SP02
Steve.
Thanks for the quick reply.
How can I make this work when all the items on the table are always highlighted.
Ex) https://postimg.org/image/3x0flle2h/
As you can see, all the rows are returned even though i am only using onSelect or onCellDoubleClick on 1st row .
any ideas how to bypass this restriction?
thanks
I can't quite see all of your script in the screenshot, but I assume you are using the "selectedRows" property of the table? That will always contain all of the selected rows.
The onCellDoubleClick event is given parameters that tell you which row and column was clicked. That's independent of the selectedRows property.
You are right. thanks.