Skip to content

Commit da466a4

Browse files
authored
update demo 176 (#129)
1 parent a798c56 commit da466a4

File tree

1 file changed

+24
-22
lines changed

1 file changed

+24
-22
lines changed

src/z2ui5_cl_demo_app_176.clas.abap

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,32 @@ CLASS z2ui5_cl_demo_app_176 DEFINITION PUBLIC.
3636
ENDCLASS.
3737

3838

39-
CLASS z2ui5_cl_demo_app_176 IMPLEMENTATION.
4039

41-
METHOD z2ui5_if_app~main.
40+
CLASS Z2UI5_CL_DEMO_APP_176 IMPLEMENTATION.
4241

43-
main_view( client ).
4442

45-
nest_view( client ).
43+
METHOD main_view.
44+
45+
DATA(lo_view) = z2ui5_cl_xml_view=>factory( ).
46+
47+
DATA(page) = lo_view->shell(
48+
)->page(
49+
title = `Main View`
50+
id = `test`
51+
navbuttonpress = i_client->_event( 'BACK' )
52+
shownavbutton = abap_true
53+
)->header_content(
54+
)->link(
55+
text = 'Source_Code'
56+
target = '_blank'
57+
href = z2ui5_cl_demo_utility=>factory( i_client )->app_get_url_source_code( )
58+
)->get_parent( ).
59+
60+
i_client->view_display( lo_view->stringify( ) ).
4661

4762
ENDMETHOD.
4863

64+
4965
METHOD nest_view.
5066

5167
i_client->_bind( mt_layout ).
@@ -69,32 +85,18 @@ CLASS z2ui5_cl_demo_app_176 IMPLEMENTATION.
6985
)->column_list_item(
7086
)->cells(
7187
)->template_repeat( list = `{meta>/MT_LAYOUT}` var = `LO2`
72-
)->object_identifier( text = `{LO2>BINDING}` ).
73-
88+
)->object_identifier( text = `{= '{' + ${LO2>FNAME} + '}' }` ).
7489

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

7792
ENDMETHOD.
7893

79-
METHOD main_view.
8094

81-
DATA(lo_view) = z2ui5_cl_xml_view=>factory( ).
95+
METHOD z2ui5_if_app~main.
8296

83-
DATA(page) = lo_view->shell(
84-
)->page(
85-
title = `Main View`
86-
id = `test`
87-
navbuttonpress = i_client->_event( 'BACK' )
88-
shownavbutton = abap_true
89-
)->header_content(
90-
)->link(
91-
text = 'Source_Code'
92-
target = '_blank'
93-
href = z2ui5_cl_demo_utility=>factory( i_client )->app_get_url_source_code( )
94-
)->get_parent( ).
97+
main_view( client ).
9598

96-
i_client->view_display( lo_view->stringify( ) ).
99+
nest_view( client ).
97100

98101
ENDMETHOD.
99-
100102
ENDCLASS.

0 commit comments

Comments
 (0)