on 11-04-2010 7:39 AM
Hello All,
In my application, the user enters customer no and obtains the list of materials in the next view. The list is displayed in a table with scroll bars.
If the user scroll the tabel and then goes back to entry screen and provides another entry then the material table scroll bar is pulled down or middle( depending on the state of scroll bar for the previous material).
Now, I would liek to reset the scroll bar to top of the table. How do i do that?
Thank you,.
Regards,
Sharath
lo_table->set_first_visible_row( 1 ). may help
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you all.
Instead of setting the visible row in wdmodifyview method, set a attribute(value 0) in the method called while loading the table. Assign this attribute to the table property firstVisibleRow. This ensures that always the first row is displayed.
Thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi, Sharath.
Have you try to use "CL_WD_TABLE" object in WdDoModify method of View?
data: lo_table type ref to CL_WD_TABLE.
lo_table ?= view->get_element( 'table name' ).
You can look for the desired method in SE24 of this class CL_WD_TABLE directly.
There are many methods.(Sorry, i have not tried anyone..Just one my suggestion..Anyway, you can try..).
Best wishes.
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.