on 08-14-2013 9:07 PM
Hi All,
I have a standard table in web dynpro in my view. This table displays 10 lines at a time and has scrolling enabled. We allow the users to add
a new line to the table and my requirement is to add it to the top of the list. THis is working fine as long as you are within the first 10 rows. If you add
a line and you are on say the 15th row then the line gets added and selected but it is not visable to the user unless they scroll up. Is there any way to
reset the scrolling in the view when I add the new line? I have tried setting the lead selection which gets set but the scrooling does nto get refreshed. I
have also invalidated the table and redid the binding but it is still not taking me to the top,
Regards,
Tom
Hello,
Best solution for this as i have used in my project.
Append new line in start, and rebind the UI table with that internal table, so new line will be in starting and no need to scroll and once user saved all data sort data based on your condition.
demo code.
Read Existing data of UI Table in Itab.
Make copy of Itab without data.(itab_copy).
append a new line (WA) to Itab_copy.
append lines of itab into itab_copy.
and Bind UI table wth(Itab_copy).
BR
Chandra..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Thomas,
As per my knowledge, Inside the row appended action find the the total number of line using Describe table lt_table lines tot.
Then append the row into that table.
Then add the one to that tot variable.
Then set the index to visible the particular row.
Hope this will helpful to you.
Regards,
John.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.