diff --git a/src/z2ui5_cl_app_hello_world.clas.abap b/src/z2ui5_cl_app_hello_world.clas.abap index 7debe36b..d46924a0 100644 --- a/src/z2ui5_cl_app_hello_world.clas.abap +++ b/src/z2ui5_cl_app_hello_world.clas.abap @@ -1,17 +1,16 @@ CLASS z2ui5_cl_app_hello_world DEFINITION PUBLIC. PUBLIC SECTION. - INTERFACES z2ui5_if_app. - DATA product TYPE string. - DATA quantity TYPE string. + DATA product TYPE string. + DATA quantity TYPE string. DATA check_initialized TYPE abap_bool. ENDCLASS. -CLASS Z2UI5_CL_APP_HELLO_WORLD IMPLEMENTATION. +CLASS z2ui5_cl_app_hello_world IMPLEMENTATION. METHOD z2ui5_if_app~main. @@ -26,7 +25,7 @@ CLASS Z2UI5_CL_APP_HELLO_WORLD IMPLEMENTATION. client->popup_message_toast( |{ product } { quantity } - send to the server| ). ENDCASE. - client->set_next( VALUE #( xml_main = Z2UI5_CL_XML_VIEW=>factory( + client->set_next( VALUE #( xml_main = z2ui5_cl_xml_view=>factory( )->shell( )->page( title = 'abap2UI5 - z2ui5_cl_app_hello_world' )->simple_form( title = 'Hello World' editable = abap_true @@ -35,12 +34,10 @@ CLASS Z2UI5_CL_APP_HELLO_WORLD IMPLEMENTATION. )->label( 'quantity' )->input( value = client->_bind( quantity ) )->label( 'product' - )->input( - value = product - enabled = abap_false - )->button( - text = 'post' - press = client->_event( 'BUTTON_POST' ) + )->input( value = product + enabled = abap_false + )->button( text = 'post' + press = client->_event( 'BUTTON_POST' ) )->get_root( )->xml_get( ) ) ). ENDMETHOD.