how to select multiple row of table using check box?
i am having table on view having first field as checkbox. what i want, when i click on checkboxes in multiple rows, and i click on any button i need to use those content to next view...
my problem is if i select only one row , i can use onlead select property of table..but when i select multiple rows through check box how should i read contents of table....?
Plz solve it.
Uday Gubbala replied
Not sure as to where you might be going wrong. I will try explain the procedure in a bit more detail. Suppose you want to display the data of VBAK in a table.
1) Create a context node NODE1. (cardinality 0..n, selection 0..n, uncheck initialise lead selection checkbox)
2) Bind the dataSource property of the table ui element to this node NODE1. Select the cell editor as textview and the standard property as text.
3) Check the rowSelectable checkbox in the table properties.
Below is the coding that I use for selecting all the lines of the table control.
METHOD onactiondeselect_all_rows . DATA: wd_node TYPE REF TO if_wd_context_node, lines_count TYPE i VALUE 0. wd_node = wd_context->get_child_node( name = 'NODE1' ). CALL METHOD wd_node->get_element_count RECEIVING count = lines_count. DO lines_count TIMES. wd_node->set_selected( flag = '' index = sy-index ). ENDDO. ENDMETHOD.