@@ -4,10 +4,16 @@ CLASS z2ui5_cl_demo_app_127 DEFINITION PUBLIC.
44
55 INTERFACES z2ui5_if_app.
66
7- DATA product TYPE string .
8- DATA quantity TYPE string .
7+ * DATA product TYPE string.
8+ * DATA quantity TYPE string.
99 DATA check_initialized TYPE abap_bool .
1010
11+ DATA :
12+ BEGIN OF nav_params,
13+ product TYPE string ,
14+ quantity TYPE string ,
15+ END OF nav_params.
16+
1117 PROTECTED SECTION .
1218 PRIVATE SECTION .
1319ENDCLASS .
@@ -19,13 +25,12 @@ CLASS z2ui5_cl_demo_app_127 IMPLEMENTATION.
1925
2026 METHOD z2ui5_if_app ~main .
2127
22- data (lt_startup_params ) = client->get( )-s_config-t_startup_params.
28+ DATA (lt_startup_params ) = client->get( )-s_config-t_startup_params.
2329
2430 IF check_initialized = abap_false .
2531 check_initialized = abap_true .
2632
27- product = 'tomato' .
28- quantity = '500' .
33+ nav_params-product = '102343333' .
2934
3035 DATA (view ) = z2ui5_cl_xml_view=>factory( ).
3136 client->view_display( view->shell(
@@ -42,17 +47,18 @@ CLASS z2ui5_cl_demo_app_127 IMPLEMENTATION.
4247 )->get_parent(
4348 )->simple_form( title = 'App 127' editable = abap_true
4449 )->content( 'form'
45- * )->title( 'Input'
46- * )->label( 'Product'
47- * )->input( client->_bind_edit( product )
48- * )->label( `Quantity`
49- * )->input( client->_bind_edit( quantity )
50+ )->label( `Product`
51+ )->input( client->_bind_edit( nav_params-product )
5052 )->button( text = 'BACK' press = client->_event_client( client->cs_event-cross_app_nav_to_prev_app )
5153 )->button(
5254 text = 'go to app 128'
5355 press = client->_event_client(
5456 val = client->cs_event-cross_app_nav_to_ext
55- t_arg = VALUE #( ( `{ semanticObject: "Z2UI5_CL_DEMO_APP_128", action: "Z2UI5_CL_DEMO_APP_128" }` ) )
57+ t_arg = VALUE #(
58+ ( `{ semanticObject: "Z2UI5_CL_DEMO_APP_128", action: "Z2UI5_CL_DEMO_APP_128" }` )
59+ * ( `{ "Product" : "102343333" }` )
60+ ( `$` && client->_bind_edit( nav_params ) )
61+ )
5662 )
5763 )->stringify( ) ).
5864
0 commit comments