Skip to Content
avatar image
Former Member

Setting Lead Selection Null

Hi,

I want to set the Lead Selection Null of a Normal Table in My View on the Action of a Button.

Kindly Help.


Thank's,

Samir

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    Sep 08, 2014 at 02:12 PM

    Hi,

    These next statements will remove the lead selection from you table on the view.

    lo_nd_node = wd_context->get_child_node( name = wd_this->wdctx_ct_xxx_dta ).

    lo_nd_node->set_lead_selection_index( 0 ).

    Greetings Maarten

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 08, 2014 at 08:15 AM

    Hi Samir,

    If I understand it correctly you want to clear the selection when you are pressing a button.

    Please try in your action : lo_nd_node->clear_selection( ).

    Thanks,

    Hancila

    Add comment
    10|10000 characters needed characters exceeded

    • So for your table the data source is a node in the context..

      I was saying to call the method clear_selection() for that node.

      If not...

      I don't know why is not working for you, but I have in mind another solution:

      Create a new attribute in the context. Bind the property 'Selection mode' of the table in the view with that attribute. In your action, play a little with the values of this attribute(see possible values in the drop-down) .

      Hope this helps,

      Hancila

  • avatar image
    Former Member
    Sep 08, 2014 at 08:26 AM

    Hi,

    for dynamically creating table,

    you can use method lo_table-> set_selection_mode( Value = '06').

    Add comment
    10|10000 characters needed characters exceeded