2010 Jul 01 10:02 AM
hi masters,
i have a table control where i have to insert accrding to the number if i can put in this way.
for ex : i have 10 records in my TC so when the user clicks on the 5th record and clicks on insert button so i should insert the record after the 5th record....i have tried but i seems to be loosing the logic.
can i hav some info from you people so that i would get the solution.
thanks in advance.
pasala.
thank you .
2010 Jul 01 10:13 AM
Hi,
in your table control, When you select the fifth line then get the index of that line and
when Insert used insert itab index line + 1 where line is the index of 5th record.
or.
you can assing and serial number internally like 1,2,3,...
when u select 5th line and insert serial number of the new inserted will be also 5, keep you itab sorted by serial number.
hope this may be helpfull to you
2010 Jul 05 11:13 AM
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |