Skip to Content
avatar image
Former Member

ID of selected Element in Table


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



Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Oct 28, 2013 at 01:14 PM

    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


    Add comment
    10|10000 characters needed characters exceeded