on 08-29-2011 8:00 AM
Hi Experts,
I am working with dynamic programming... there is Add button Once I press Add it will create the 3 input fileds and one button (its for Delete ) in one row.
If press the Button( Delete ) it should delete the respective row ( 3 input fileds and the button ( delete) ).
Please help me with the solution.
Thanks,
Anil
Hi,
One idea: you could put these fields and the button inside a group (dynamically created by CL_WD_GROUP=>NEW_GROUP(...), and then use methods of the group (CL_WD_GROUP) to either set it invisible (SET_VISIBLE) or - if it's an element within another element (say, another group) use method REMOVE_CHILD from within the surrounding group.
Regards,
Trond
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Trond for your reply.
I used below code and when I am click on the delete button its deleting the top row on the view.
Its not deleting the respective row...
Ex if i have 4 rows on view and I am pressing on second row delete button but still its deleting the top row.
I changed index of Remove_child and tried..
I used index = 0 , index = 1 and i am not passed any index still its not deleting the respective row.
CALL METHOD lr_container->remove_child
EXPORTING
index = 1
id = gv_char.
Please let me know how can i do this.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.