Skip to content

Commit 568260a

Browse files
authored
Update hello_world.md
1 parent 69131f1 commit 568260a

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

docs/get_started/hello_world.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,19 @@ CLASS z2ui5_cl_app_hello_world DEFINITION PUBLIC.
8989
ENDCLASS.
9090
9191
CLASS z2ui5_cl_app_hello_world IMPLEMENTATION.
92+
9293
METHOD z2ui5_if_app~main.
94+
9395
CASE abap_true.
9496
9597
WHEN client->check_on_init( ).
9698
97-
DATA(view) = z2ui5_cl_xml_view=>factory(
98-
)->page( `abap2UI5 - Hello World`
99-
)->text( `My Text`
100-
)->button( text = `post` press = client->_event( `POST` )
99+
DATA(view) = z2ui5_cl_xml_view=>factory(
100+
)->page( `abap2UI5 - Hello World`
101+
)->text( `My Text`
102+
)->button(
103+
text = `post`
104+
press = client->_event( `POST` )
101105
)->input( client->_bind_edit( name ) ).
102106
client->view_display( view->stringify( ) ).
103107
@@ -106,7 +110,9 @@ CLASS z2ui5_cl_app_hello_world IMPLEMENTATION.
106110
client->message_box_display( |Your name is { name }.| ).
107111
108112
ENDCASE.
113+
109114
ENDMETHOD.
115+
110116
ENDCLASS.
111117
```
112118
And that's it! Set a breakpoint to observe the communication and data updates in action. Now you can play around and experiment with modifying the view, events, and data exchange.

0 commit comments

Comments
 (0)