Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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

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.

Former Member


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,


0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question