cancel
Showing results for 
Search instead for 
Did you mean: 

How to refresh the selection of rows in a table UI element?

Former Member
0 Kudos

Hi All,

I have created a table using table UI element.

The scenario is explained step by step

1) suppose that i have selected row no: 2 and 3.

2) on click of a button(say Button1) I save the selected rows locally (internal table)

3) now i select row no. 5 (the above selection 2 and 3 is not anymore )

4) on click of a button( say Button2) i want to have previous selection to be displayed (it should go on step 1).

But the problem comes after step 4:

The previous selection(row 2 and 3) is displayed but the new selection( row 5) is also selected.

Also If i read the context node it give me only rows 2 and 3 (OK).

So I am not getting how to remove the selection of row no: 5.

I have used clear selection and invalidate method but still same results.

Accepted Solutions (1)

Accepted Solutions (1)

former_member184578
Active Contributor
0 Kudos

Hi,

After 4th step., when you click on button 2.,

lo_nd_table->set_lead_selection_index( index = 0 ).

now again you set the selected elements ( 2 and 3 ) to table UI.,

hope this helps u.,

Thanks & Regards,

Kiran

Answers (1)

Answers (1)

Former Member
0 Kudos

Thanks Kiran for your help.