cancel
Showing results for 
Search instead for 
Did you mean: 

Scroll Bars to be reset

Sharathmg
Active Contributor
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

lo_table->set_first_visible_row( 1 ). may help

Answers (2)

Answers (2)

Sharathmg
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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.