Skip to Content
0
Former Member
Apr 27, 2012 at 06:35 PM

Search Result View Multi selection

32 Views

Hi,

I have a Search Result View which allows users to select multiple rows. To process, user clicks the custom button "Submit" added on the Tool bar. In the event handler i wrote the below code. This is selecting only last record. But i want to read all selected rows.

--- htm page

<chmlb:configTable id = "Table"
reset = "<%= controller->get_reset_flag( ) %>"
actions = "<%= controller->gt_button %>"
navigationMode = "BYPAGE"
table = "//RESULT/Table"
visibleRowCount = "<%= lv_visiblerows %>"
usage = "SEARCHRESULT"
downloadToExcel = "<%= lv_export %>"
selectedRowIndexTable = "<%= RESULT->SELECTION_TAB %>"
selectionMode = "<%= RESULT->SELMODE_MULTI %>"
onRowSelection = "SELECT"
showNoMatchText = "FALSE" />

method submit.

data: lv_collection TYPE REF TO if_bol_bo_col,

lv_property_access TYPE REF TO if_bol_bo_property_access.

lv_collection ?= me->typed_context->result->collection_wrapper->get_marked( ).

lv_property_access = lv_collection->get_first( ).

WHILE lv_property_access IS not INITIAL.

lv_property_access = lv_collection->get_next( ).

endwhile.

endmethod.

Thanks

Tim