You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/get_started/hello_world.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,18 +59,18 @@ ENDCLASS.
59
59
CLASS z2ui5_cl_app_hello_world IMPLEMENTATION.
60
60
METHOD z2ui5_if_app~main.
61
61
62
-
CASE client->get( )-event.
63
-
WHEN 'POST'.
64
-
client->message_box_display( |Hello World!| ).
65
-
RETURN.
66
-
ENDCASE.
67
-
68
62
client->view_display( z2ui5_cl_xml_view=>factory(
69
63
)->page( 'abap2UI5 - Hello World'
70
64
)->text( `My Text`
71
65
)->button( text = 'post' press = client->_event( 'POST' )
72
66
)->stringify( ) ).
73
67
68
+
CASE client->get( )-event.
69
+
WHEN 'POST'.
70
+
client->message_box_display( |Hello World!| ).
71
+
RETURN.
72
+
ENDCASE.
73
+
74
74
ENDMETHOD.
75
75
ENDCLASS.
76
76
```
@@ -89,24 +89,24 @@ ENDCLASS.
89
89
CLASS z2ui5_cl_app_hello_world IMPLEMENTATION.
90
90
METHOD z2ui5_if_app~main.
91
91
92
-
CASE client->get( )-event.
93
-
WHEN 'POST'.
94
-
client->message_box_display( |Your name is { name }.| ).
95
-
RETURN.
96
-
ENDCASE.
97
-
98
92
client->view_display( z2ui5_cl_xml_view=>factory(
99
93
)->page( 'abap2UI5 - Hello World'
100
94
)->text( `My Text`
101
95
)->button( text = 'post' press = client->_event( 'POST' )
102
96
)->input( client->_bind_edit( name )
103
97
)->stringify( ) ).
104
98
99
+
CASE client->get( )-event.
100
+
WHEN 'POST'.
101
+
client->message_box_display( |Your name is { name }.| ).
102
+
RETURN.
103
+
ENDCASE.
104
+
105
105
ENDMETHOD.
106
106
ENDCLASS.
107
107
```
108
108
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.
109
109
110
110
::: tip **ABAP Language Versions**
111
111
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.
0 commit comments