Skip to Content
0

SAP Personas 3.0- dynamically retrieve table cell data from double click (or row select)

Nov 16, 2016 at 03:55 PM

245

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Steve Rumsby
Nov 16, 2016 at 04:15 PM
1

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.

Show 3 Share
10 |10000 characters needed characters left characters exceeded

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

0

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.

1

You are right. thanks.

1