cancel
Showing results for 
Search instead for 
Did you mean: 

Item Listbox scrollbar not scrolling

kmoore007
Active Contributor
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

kmoore007
Active Contributor
0 Kudos

Maybe my question should be, does anyone know how to manually make a ListBox scroll?