how can i get the selected row in abab webdynpro table?
i have a table in my webdynpro screen. The employee can add rows to this table.
the new line is always added at the buttom of the table - i mean it is always added as the last row.
i want to let the user the option to add rows bwtween 2 existing rows - the user will mark the row and press the vutton "insert row" and a new row will be entered between the existing rows (like in EXCEL ). Is there a way to do that ?
steps to do:
1. get lead selection of node by using if_wd_context_node method get_lead_seelection_index.
2. get table using if_wd_context_node method get_static_attribute_table.
3 you can put all rows of table greater than lead_selation into another ( temporary ) internal table then append a new row in main internal table.
4. put all data from temporary internal table into main table and bind main table with node using method bind_table.
if helpful reward point