cancel
Showing results for 
Search instead for 
Did you mean: 

Setting Lead Selection Null

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

mmgc_riel
Participant
0 Kudos

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

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

for dynamically creating table,

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

Former Member
0 Kudos


Hi Paul,

Its a normal table and not dynamic

former_member183072
Active Participant
0 Kudos

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

Former Member
0 Kudos

Hi,

I tried it but it doesnt work.

former_member183072
Active Participant
0 Kudos

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