on 12-02-2008 8:56 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
3 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.