on 02-07-2012 3:21 PM
I have an item listbox with 5 entries visible, but there can be many more entries not visible. I am setting the lead selection programmatically via an index. The correct item in the listbox is selected (highlighted), but the listbox is not scrolling down. If I scroll down by clicking on the scrollbar, I can see the correct item selected. But the scrollbar will not automatically scroll to the selected item. Any ideas?
Sample code:
IF lo_nd_employees IS INITIAL.
ELSE.
* get all declared attributes
lo_nd_employees->get_static_attributes_table( IMPORTING table = lt_employees ).
LOOP AT lt_employees INTO ls_employees WHERE pernr = ls_time_records-sapid.
CALL METHOD lo_nd_employees->move_to
EXPORTING
index = sy-tabix.
* lo_nd_employees->set_lead_selection_index( sy-tabix ).
* lo_nd_employees->set_selected( sy-tabix ).
EXIT.
ENDLOOP.
ENDIF.
Edited by: Kenneth Moore on Feb 7, 2012 10:22 AM
Maybe my question should be, does anyone know how to manually make a ListBox scroll?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.