Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

ID of selected Element in Table

Hi,

i'm new to Web Dynpro, therefore some easy questions...

i want edit some entries in a table.

the access on the entry is no problem... but

1- How can i store the ID/number/row of the selected element ?

     int i = wdContext.nodeAdresses().LEAD_SELECTION;      returns -1

2- And how can i close the selectionMode via Code?

3- Is there any possibility to change the colour of an Input Field? for invalid inputs

thx

Bueni

Tags:
Former Member
Former Member replied

Hi Buenyamin

1. The method is getLeadSelection().

          If it returns -1 then it means that no row is selected, for preventing that you can set the node's property 'Collection Cardinality' to '1..n' OR '1..1'

2. Create a context attribute of type TableSelectionMode and bind it to the table's property and handle the attribute in code

3. Using the messageManager method 'reportContextAttributeMessage'

Good luck

Shai

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question