cancel
Showing results for 
Search instead for 
Did you mean: 

How to return a value from a selected table row

Former Member
0 Kudos

Hi

Ive got a RFC connection to sap which render the results in a table.

How can I return one of the cell values from the table of a selected row

Thanks

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

When I select(Highlight) a row in a table. Ive also got an action button . So when I hit the action button I want to

display one of the colum values from the selected row.

Do you have code that can do this

Thanks

Former Member
0 Kudos

Let X be the context node used as the table's data source, Y be an attribute of X that is displayed in some table column.

After selecting row i, it holds:

wdContext.nodeX().getLeadSelection() == i

The value of attribute Y for the selected row is:

wdContext.currentXElement().getY()

Regards, Armin

Former Member
0 Kudos

What do you mean by "return"? Is the table editable?

The value at table cell (row, column) is determined by the context node used as the table's data source.

Each node element (roughly) corresponds to a row. The column has a cell editor that is bound to some attribute of the data source node.

The selected row corresponds to the data source node's selection.

Regards, Armin