refactoring

This commit is contained in:
19ddb071-87e3-4bdd-9eee-59bb460e1d62 2023-06-15 17:43:18 +00:00
parent b16f653860
commit bfb9f1329a

View File

@ -1,7 +1,6 @@
CLASS z2ui5_cl_app_hello_world DEFINITION PUBLIC.
PUBLIC SECTION.
INTERFACES z2ui5_if_app.
DATA product TYPE string.
@ -11,7 +10,7 @@ CLASS z2ui5_cl_app_hello_world DEFINITION PUBLIC.
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,11 +34,9 @@ CLASS Z2UI5_CL_APP_HELLO_WORLD IMPLEMENTATION.
)->label( 'quantity'
)->input( value = client->_bind( quantity )
)->label( 'product'
)->input(
value = product
)->input( value = product
enabled = abap_false
)->button(
text = 'post'
)->button( text = 'post'
press = client->_event( 'BUTTON_POST' )
)->get_root( )->xml_get( ) ) ).