‎2010 Jan 14 8:13 AM
Hi all,
I am working on an application with a tree control on the left side and an ALV Grid on the top. Now I implemented a timer functionality using:
CLASS lcl_application DEFINITION.
PUBLIC SECTION.
CLASS-METHODS: on_finished FOR EVENT finished OF cl_gui_timer.
ENDCLASS.
CLASS lcl_application IMPLEMENTATION.
METHOD on_finished.
timer->interval = timeout.
CALL METHOD timer->run.
...
CALL METHOD cl_gui_cfw=>set_new_ok_code
EXPORTING
new_code = 'TIMER'.
ENDMETHOD.
endclass.
The timer starts and runs 5 seconds. Then it terminates, calls the on_finished - event and starts again.
This works.
My only problem is now, when I am clicking on the ALV Grid at top of the screen, looking at some details and return with "Enter" into my program, the timer doesnt start again.
Is there an event which is triggered, when the details- window of the ALV gets closed?
Thanks in advance
Thanks in advance.
Edited by: HProkoph on Jan 14, 2010 9:49 AM
‎2010 Jan 15 12:40 PM
Perhaps you could use the event after_user_command of cl_gui_alv_grid to trigger the timer again.
~Jose
‎2010 Jan 15 12:40 PM
Perhaps you could use the event after_user_command of cl_gui_alv_grid to trigger the timer again.
~Jose