Skip to Content
avatar image
Former Member

Leadselection in ALV not visible

I have a simple test application. A context node is defined as 0...1 and I have bound it with a table and an ALV (SALV_WD_TABLE).

In WDDOINIT of COMPONENTCONTROLLE I fill the context and set the leadselection (node->set_lead_selection( index = 1 ).

The simple table mark the row as the selected (yellow), but the row of ALV don't marked.

How I can set the lead_selection at ALV?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Nov 04, 2009 at 10:35 AM

    Hi,

    You need do any settings for ALV table.

    Does the ALV table contain an entries.

    If it has entries the lead selection will come automatically..

    Regards,

    Chaitanya Priya

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 04, 2009 at 11:06 AM

    hi,

    Try with method set_lead_selection_index :

    node->set_lead_selection_index( index = 3 ).

    And change the cardinality of node binded to table/Alv with 0..n or 1..n

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      The OSS-Note 1137854 solve the problem with the lead_selection. But, the content of note isn't exactly. The end user don't select a line but the developer.