cancel
Showing results for 
Search instead for 
Did you mean: 

ID of selected Element in Table

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (0)