Info Window - remember selection during pagination

Description

Selected rows should by remembered during switching between multiple pages.

Steps to reproduce:
1. Open Info window where will be multiple pages
2. Select some rows on first page
3. Switch to second page and select other records
4. Switch back to first page > selection is lost = BUG/IMPROVEMENT

Environment

None

Activity

Show:
Carlos Ruiz
October 30, 2015, 2:15 PM

After review if I noticed that this won't work if enabled multi-selection on an InfoWindow like business partner where there can be multiple lines with the same BP Key.

It works fine with InfoProduct because each line is a different product.

Tomáš Švikruha
November 2, 2015, 6:47 AM

that's the case why we needed ViewID (). This could be used also in this case but question is how? I also met something similar while testing IDEMPIERE-2709.

Nicolas Micoud
October 19, 2017, 7:22 AM

Hi,

In the commit, the InfoPanel.getSelectedRowKeys method was deprecated.
The inline comment says : @deprecated this function should deprecated and replace with {@link #getListKeyValueOfSelectedRow()} to support view at infoWindow.
But I can't find a getListKeyValueOfSelectedRow method.

I also see that the InfoPanel.saveSelection is still using it.

Can you clarify please ?

Thanks,

Nicolas

Hiep Lq
October 19, 2017, 7:29 AM

i guess it rename to getSaveKeys

Nicolas Micoud
October 19, 2017, 7:34 AM

ok thanks,
it was confusing because getSaveKeys has a param and getSelectedRowKeys has not

Nicolas

Assignee

Hiep Lq

Reporter

Tomáš Švikruha

Tested By

Carlos Ruiz
Norbert Bede

Priority

Major
Configure