Skip to content

Commit

Permalink
update demo 176 (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
choper725 authored Feb 26, 2024
1 parent a798c56 commit da466a4
Showing 1 changed file with 24 additions and 22 deletions.
46 changes: 24 additions & 22 deletions src/z2ui5_cl_demo_app_176.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,32 @@ CLASS z2ui5_cl_demo_app_176 DEFINITION PUBLIC.
ENDCLASS.


CLASS z2ui5_cl_demo_app_176 IMPLEMENTATION.

METHOD z2ui5_if_app~main.
CLASS Z2UI5_CL_DEMO_APP_176 IMPLEMENTATION.

main_view( client ).

nest_view( client ).
METHOD main_view.

DATA(lo_view) = z2ui5_cl_xml_view=>factory( ).

DATA(page) = lo_view->shell(
)->page(
title = `Main View`
id = `test`
navbuttonpress = i_client->_event( 'BACK' )
shownavbutton = abap_true
)->header_content(
)->link(
text = 'Source_Code'
target = '_blank'
href = z2ui5_cl_demo_utility=>factory( i_client )->app_get_url_source_code( )
)->get_parent( ).

i_client->view_display( lo_view->stringify( ) ).

ENDMETHOD.


METHOD nest_view.

i_client->_bind( mt_layout ).
Expand All @@ -69,32 +85,18 @@ CLASS z2ui5_cl_demo_app_176 IMPLEMENTATION.
)->column_list_item(
)->cells(
)->template_repeat( list = `{meta>/MT_LAYOUT}` var = `LO2`
)->object_identifier( text = `{LO2>BINDING}` ).

)->object_identifier( text = `{= '{' + ${LO2>FNAME} + '}' }` ).

i_client->nest_view_display( val = lo_view_nested->stringify( ) id = `test` method_insert = 'addContent' ).

ENDMETHOD.

METHOD main_view.

DATA(lo_view) = z2ui5_cl_xml_view=>factory( ).
METHOD z2ui5_if_app~main.

DATA(page) = lo_view->shell(
)->page(
title = `Main View`
id = `test`
navbuttonpress = i_client->_event( 'BACK' )
shownavbutton = abap_true
)->header_content(
)->link(
text = 'Source_Code'
target = '_blank'
href = z2ui5_cl_demo_utility=>factory( i_client )->app_get_url_source_code( )
)->get_parent( ).
main_view( client ).

i_client->view_display( lo_view->stringify( ) ).
nest_view( client ).

ENDMETHOD.

ENDCLASS.

0 comments on commit da466a4

Please sign in to comment.