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 a461e31 commit 25c9eb5
Showing 1 changed file with 1 addition and 26 deletions.
27 changes: 1 addition & 26 deletions src/z2ui5_cl_demo_app_174.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ CLASS z2ui5_cl_demo_app_174 IMPLEMENTATION.
view = view->shell( )->page( id = `page_main`
title = 'abap2UI5 - Popup Layout'
navbuttonpress = client->_event( 'BACK' )
shownavbutton = xsdbool( client->get( )-s_draft-id_prev_app_stack IS NOT INITIAL )
).
shownavbutton = xsdbool( client->get( )-s_draft-id_prev_app_stack IS NOT INITIAL ) ).

DATA(table) = view->table(
growing = 'true'
Expand All @@ -91,19 +90,6 @@ CLASS z2ui5_cl_demo_app_174 IMPLEMENTATION.
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( ).

LOOP AT ms_layout-t_layout REFERENCE INTO DATA(layout).
Expand Down Expand Up @@ -192,21 +178,10 @@ CLASS z2ui5_cl_demo_app_174 IMPLEMENTATION.

CASE client->get( )-event.

WHEN 'LAYOUT_OPEN'.
* 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->nav_app_call( z2ui5_cl_popup_layout_v2=>factory( layout = ms_layout
extended_layout = abap_true ) ).

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

ENDCASE.

ENDMETHOD.
Expand Down

0 comments on commit 25c9eb5

Please sign in to comment.