Input table in webdynpro application
I have roads tadble in my webdynpro application.
In order to insert values to the table the user has button called 'ADD ROAD' and a new line is "open" for input.
The new row is always entered under the previous, is there that when the user select row 3 (when i have 5 row with data that the user already enterd ) and press 'add road' the new row will entered between the existing rows 3 and 4 ( i want it to behave like microsoft EXCEL when u can add new rows for an existing table) ?
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