on 03-14-2011 6:13 AM
Hi Experts,
I am displaying data in a table in below format
field1 field2
Sequenceno Text
1. ABC
2. BCD
3. EFG
As per my requirment it needs a delete row functionality
that when i select a row and press delete that row should be deleted and sequence no. should be updated.
How this can be done?
any inputs please suggest
After deleting the row, update the node data by refilling the sequence attribute
here is the sample code.
data nd type ref to if_wd_context_node.
DATA EL TYPE REF TO IF_WD_CONTEXT_ELEMENT.
nd = wd_context->get_child_node( '<node name >' ).
data size type i.
size = ND->GET_ELEMENT_COUNT( ).
DO SIZE TIMES.
EL = ND->GET_ELEMENT( INDEX = SY-index ).
EL->SET_ATTRIBUTE(
NAME = '<attribute name>'
VALUE = SY-INDEX
).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bhanu ,
Please use the method lead select for the table.
It will work for you.
Regards
Kuldeep
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.