Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 17 additions & 13 deletions src/z2ui5_cl_demo_app_135.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -130,23 +130,27 @@ CLASS z2ui5_cl_demo_app_135 IMPLEMENTATION.


METHOD z2ui5_if_app~main.
TRY.

CLEAR error.
CLEAR error.

IF check_initialized = abap_false.
check_initialized = abap_true.
update_lock_counter( ).
initialize_view( client ).
ENDIF.
IF check_initialized = abap_false.
check_initialized = abap_true.
update_lock_counter( ).
initialize_view( client ).
ENDIF.

TRY.
on_event( client ).
CATCH z2ui5_cx_util_error INTO DATA(x_error).
error-text = x_error->get_text( ).
error-flag = abap_true.
client->view_model_update( ).
ENDTRY.
TRY.
on_event( client ).
CATCH z2ui5_cx_util_error INTO DATA(x_error).
error-text = x_error->get_text( ).
error-flag = abap_true.
client->view_model_update( ).
ENDTRY.

CATCH cx_root INTO DATA(lx).
client->message_box_display( lx->get_text( ) ).
ENDTRY.
ENDMETHOD.


Expand Down
16 changes: 11 additions & 5 deletions src/z2ui5_cl_demo_app_137.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,18 @@ ENDCLASS.
CLASS z2ui5_cl_demo_app_137 IMPLEMENTATION.

METHOD z2ui5_if_app~main.
IF check_initialized = abap_false.
check_initialized = abap_true.
initialize_view( client ).
ENDIF.
TRY.

IF check_initialized = abap_false.
check_initialized = abap_true.
initialize_view( client ).
ENDIF.

on_event( client ).

on_event( client ).
CATCH cx_root INTO DATA(lx).
client->message_box_display( lx->get_text( ) ).
ENDTRY.
ENDMETHOD.

METHOD initialize_view.
Expand Down