cancel
Showing results for 
Search instead for 
Did you mean: 

Table rows multiselection

Former Member
0 Kudos

Hi all,

my problem is, in my web dynpro I have a table with possibility to select and change one or more rows, after changed selected rows I would like not lose selection done, but when I call method for bind table this one is refreshed, so changes are taken into account but previuos selection disappears...

Could some one help me?

thanls

GN

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You need to capture the elements of the node that are selected and then when the table is refreshed/binded again you need to ensure to set the same elements as selected for that node.

When you bind the table again these selections are not seend.

Use the methods of the node ie if_wd_context_node, set_selected to set the elements as selected.

Regards,

Lekha.

Former Member
0 Kudos

Hi Lekha, thanks for your answer,

Do you mean that I have to save all indexes of selected rows (into a view attribute for example) before refreshing table and after I have to re-select them using method suggested by you?

Isn't there a method to do it automatically?

thanks

GN

Former Member
0 Kudos

Hi,

Yes, you are right. There is no other way as such.

I think there is no method to save the state of the object/layout.

Regards,

Lekha.

Answers (0)