cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple selection in tableview

Former Member
0 Kudos

Hi Experts,

I am working in tableview with selection mode as 'Multiselect'. In WEB UI, I fired a query and got 5 pages with 10 rows and select 3 rows from first page and then go to second page, but when I go back to first page then there are no selected rows.

How can I make multiple row selection rigid while toggle between the pages in a tableview?

Quick responses would be appreciated.

Thanks

Paramjit

Accepted Solutions (0)

Answers (3)

Answers (3)

0 Kudos

Hi ,

On First page ONSELECT event get the row index (which are selected) and pass to an Global table and by  using the Global table in the SelectedRowIndexTable of the .html file you will have the selected row fixed.

Regards,

Sabari Vignesh G.

CarstenKasper
Active Contributor
0 Kudos

Hi,

I faced a similar problem once. My problem was solved when I found out that every time I navigated to the second page the ON_NEW_FOCUS method was triggered an destroyed my whole selection.

Maybe you can check there.

cheers Carsten

Former Member
0 Kudos

Hi,

I too faced the Similar Problem.

In my Case I wrote Code in DO_PREPARE_OUTPUT to populate the Selected Value to the New Context Node.

Ensure that You don't write Custom Code anything in DO_PREPARE_OUTPUT because this method gets triggerd every time when we select any specific Row and Wipes off all the earlier Selected Indexes.

Former Member
0 Kudos

I think you need to have the following attributes in your .html file:

selectionMode = "<%=Result->selection_mode %>"

selectedRowIndex = "<%=Result->selected_index %>"

selectedRowIndexTable = "<%=Result->selection_tab %>"

And you need to implement this functionality.

For an example you can see component BT108S_LEA view Result.

Best Regards

Former Member
0 Kudos

Hi ,

The changes to have suggested, I have already done that and I am able to select multiple rows. But problem is that if I select 3 rows in first page and navigate to next page and select 2 rows then again navigate back to previous page, then there is no rows selected in first page (selection not there).

The xml/html code I am using for tableview is

<chtmlb:configTable id = "Table2"

reset = "<%= controller->get_reset_flag( ) %>"

actions = "<%= controller->gt_button %>"

navigationMode = "BYPAGE"

table = "//RESULT2/Table"

visibleRowCount = "<%= lv_visiblerows %>"

usage = "SEARCHRESULT"

downloadToExcel = "<%= lv_export %>"

selectedRowIndex = "<%= RESULT2->SELECTED_INDEX %>"

selectedRowIndexTable = "<%= RESULT2->SELECTION_TAB %>"

selectionMode = "<%= RESULT2->SELMODE_MULTI %>"/>

Regards