Skip to content

Commit 29ca877

Browse files
authored
Update hello_world.md
1 parent c59ddc1 commit 29ca877

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

docs/get_started/hello_world.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -59,18 +59,18 @@ ENDCLASS.
5959
CLASS z2ui5_cl_app_hello_world IMPLEMENTATION.
6060
METHOD z2ui5_if_app~main.
6161
62-
CASE client->get( )-event.
63-
WHEN 'POST'.
64-
client->message_box_display( |Hello World!| ).
65-
RETURN.
66-
ENDCASE.
67-
6862
client->view_display( z2ui5_cl_xml_view=>factory(
6963
)->page( 'abap2UI5 - Hello World'
7064
)->text( `My Text`
7165
)->button( text = 'post' press = client->_event( 'POST' )
7266
)->stringify( ) ).
7367
68+
CASE client->get( )-event.
69+
WHEN 'POST'.
70+
client->message_box_display( |Hello World!| ).
71+
RETURN.
72+
ENDCASE.
73+
7474
ENDMETHOD.
7575
ENDCLASS.
7676
```
@@ -89,24 +89,24 @@ ENDCLASS.
8989
CLASS z2ui5_cl_app_hello_world IMPLEMENTATION.
9090
METHOD z2ui5_if_app~main.
9191
92-
CASE client->get( )-event.
93-
WHEN 'POST'.
94-
client->message_box_display( |Your name is { name }.| ).
95-
RETURN.
96-
ENDCASE.
97-
9892
client->view_display( z2ui5_cl_xml_view=>factory(
9993
)->page( 'abap2UI5 - Hello World'
10094
)->text( `My Text`
10195
)->button( text = 'post' press = client->_event( 'POST' )
10296
)->input( client->_bind_edit( name )
10397
)->stringify( ) ).
10498
99+
CASE client->get( )-event.
100+
WHEN 'POST'.
101+
client->message_box_display( |Your name is { name }.| ).
102+
RETURN.
103+
ENDCASE.
104+
105105
ENDMETHOD.
106106
ENDCLASS.
107107
```
108108
And that's it! Set a breakpoint and observe the communication and data updates. Now you can easily play around and further modify the view, event and data exchange.
109109

110110
::: tip **ABAP Language Versions**
111111
While we need to distinguish between Standard ABAP and ABAP for Cloud in the HTTP Handler, the apps themselves are independent. You can decide whether to develop your apps compatible with ABAP Cloud or not.
112-
:::
112+
:::

0 commit comments

Comments
 (0)