on 01-31-2012 8:31 AM
Hi Experts,
How to do the table manipulations [ Insert New Row, Edit Line item and Save, Delete selected line ] in WebDynpro. Could you please guide me to full fill this requirement.
With Thanks & Regards,
Samba
Hi,
1) To insert new row into a table just append the line to your table and bind it to your node.
2)To edit a line item first you read the data from the node by using GET_STATIC_ATTRIBUTES_TABLE
and get the index of the line by using GET_LEAD_SELECTION_INDEX and edit the table line with that
particular index and again bind the modified table to the node.
3) To delete the line first read the table data and lead selection and delete it from table and bind the modified
table to the node.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Insert New Row, Edit Line item and Save, Delete s
Samba,
hope you know that in webdynpro we will dispaly table using NODE.
node contents will dispalyed in table, so in order to operate the table we have to perform operation on node.
and node is of type if_wd_context_node. Check this interface in se24, you will find many methods.
For removing node->remove_element( ).
for adding(inserting new row ) there are couple of methods like
bind_element,( for single row )
bind_table( multiple records)
and if you display the table with cells as input fields then you will able to edit the contents,
Check this link it will be useful
http://www.saptechnical.com/Tutorials/WebDynproABAP/DeleteRows/Page1.htm
Regards
Srinvias
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.