File tree Expand file tree Collapse file tree 1 file changed +21
-22
lines changed
Expand file tree Collapse file tree 1 file changed +21
-22
lines changed Original file line number Diff line number Diff line change @@ -14,31 +14,30 @@ CLASS z2ui5_cl_app IMPLEMENTATION.
1414 METHOD z2ui5_if_app~main.
1515 TRY.
1616
17- "first app start
18- IF client->check_on_init( ).
19- "init values
20- "display view
21- RETURN.
22- ENDIF.
23-
24- "callback after navigation
25- IF client->check_on_navigated( ).
26- DATA(lo_app_prev) = client->get_app_prev( ).
27- "read attributes of previous app
28- "do something
29- RETURN.
30- ENDIF.
31-
32- "handle events after frontend
33- CASE client->get( )-event.
34- WHEN `OK`.
35- DATA(lt_arg) = client->get_event_arg( ).
36- "event handling
37- WHEN `CANCEL`.
17+ CASE abap_true.
18+
19+ "init app start
20+ WHEN client->check_on_init( ).
21+ "...
22+
23+ "callback after navigation
24+ WHEN client->check_on_navigated( ).
25+ DATA(lo_app_prev) = client->get_app_prev( ).
3826 "...
27+
28+ " user commands
29+ WHEN client->check_on_event( ).
30+ DATA(lt_arg) = client->get_event_arg( ).
31+
32+ CASE abap_true.
33+ WHEN client->check_on_event( `OK` ).
34+ "...
35+ WHEN client->check_on_event( `CANCEL` ).
36+ "...
37+ ENDCASE.
38+
3939 ENDCASE.
4040
41- "error handling
4241 CATCH cx_root INTO DATA(lx).
4342 client->message_box_display( lx ).
4443 ENDTRY.
You can’t perform that action at this time.
0 commit comments