Event GC_EVENT_NEXT and GC_EVENT_PREVIOUS for List GUIBBs
If you use buttons to toggle along the entries in a List UIBB, you should use these standard HR reporting events (see super class attributes AC_HRGRT_REPORTING_LIST_FEEDER
), and call the super class method HANDLE_PREV_NEXT_EVENT
,
each time passing the appropriate event. This method ensures that the correct entry in your list is selected, based on whether the user has selected previous
or next
.
Example
Code example for handling previous and next buttons/events:
Syntax
field-symbols : <lt_data> type standard table.assign ct_data to <lt_data>.CASE iv_eventid->mv_event_id.WHEN gc_event_next or gc_event_previous. call method me->handle_prev_next_event exporting iv_eventid = iv_eventid iv_max_index = lines( <lt data> ) IMPORTING ev_selected_lines_changed = ev_selected_lines_changed changing ct_selected_lines = ct_selected_lines cv_lead_index = cv_lead_indexENDCASE.