Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
oblomov-dev committed Feb 23, 2024
1 parent 48d9387 commit a461e31
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions src/z2ui5_cl_demo_app_174.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,22 @@ CLASS z2ui5_cl_demo_app_174 IMPLEMENTATION.
)->title( text = 'Table'
)->toolbar_spacer( ).

headder = z2ui5_cl_popup_layout_v2=>render_layout_function( xml = headder client = client ).
headder->button( text = 'Layout'
icon = 'sap-icon://action-settings'
press = client->_event( val = 'LAYOUT_EDIT' ) ).

* headder->overflow_toolbar_menu_button( tooltip = 'Export' icon = 'sap-icon://action-settings'
* )->_generic( `menu`
* )->_generic( `Menu`
* )->menu_item( text = 'Change Layout'
* icon = 'sap-icon://edit'
* press = client->_event( val = 'LAYOUT_EDIT' )
* )->menu_item( text = 'Choose Layout'
* icon = 'sap-icon://open-folder'
* press = client->_event( val = 'LAYOUT_OPEN' )
* )->menu_item( text = 'Manage Layouts'
* icon = 'sap-icon://delete'
* press = client->_event( val = 'LAYOUT_DELETE' ) ).

DATA(columns) = table->columns( ).

Expand Down Expand Up @@ -159,6 +174,10 @@ CLASS z2ui5_cl_demo_app_174 IMPLEMENTATION.

TRY.
DATA(app) = CAST z2ui5_cl_popup_layout_v2( client->get_app( client->get( )-s_draft-id_prev_app ) ).
DATA(ls_result) = app->result( ).

Check failure on line 177 in src/z2ui5_cl_demo_app_174.clas.abap

View check run for this annotation

abaplint / abaplint

Method "result" not found, methodCallChain

https://rules.abaplint.org/check_syntax

Check failure on line 177 in src/z2ui5_cl_demo_app_174.clas.abap

View check run for this annotation

abaplint / abaplint / abap_cloud_readiness

Method "result" not found, methodCallChain

https://rules.abaplint.org/check_syntax
IF ls_result-check_cancel = abap_true.

Check failure on line 178 in src/z2ui5_cl_demo_app_174.clas.abap

View check run for this annotation

abaplint / abaplint

"ls_result" not found, findTop

https://rules.abaplint.org/check_syntax

Check failure on line 178 in src/z2ui5_cl_demo_app_174.clas.abap

View check run for this annotation

abaplint / abaplint / abap_cloud_readiness

"ls_result" not found, findTop

https://rules.abaplint.org/check_syntax
RETURN.
ENDIF.
ms_layout = app->ms_layout.
view_display( ).

Expand All @@ -174,17 +193,17 @@ CLASS z2ui5_cl_demo_app_174 IMPLEMENTATION.
CASE client->get( )-event.

WHEN 'LAYOUT_OPEN'.
client->view_destroy( ).
* client->view_destroy( ).
client->nav_app_call( z2ui5_cl_popup_layout_v2=>factory( layout = ms_layout
open_layout = abap_true ) ).

WHEN 'LAYOUT_EDIT'.
client->view_destroy( ).
* client->view_destroy( ).
client->nav_app_call( z2ui5_cl_popup_layout_v2=>factory( layout = ms_layout
extended_layout = abap_true ) ).

WHEN 'LAYOUT_DELETE'.
client->view_destroy( ).
* client->view_destroy( ).
client->nav_app_call( z2ui5_cl_popup_layout_v2=>factory( layout = ms_layout
delete_layout = abap_true ) ).

Expand Down

0 comments on commit a461e31

Please sign in to comment.