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
+10-4Lines changed: 10 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,15 +89,19 @@ CLASS z2ui5_cl_app_hello_world DEFINITION PUBLIC.
89
89
ENDCLASS.
90
90
91
91
CLASS z2ui5_cl_app_hello_world IMPLEMENTATION.
92
+
92
93
METHOD z2ui5_if_app~main.
94
+
93
95
CASE abap_true.
94
96
95
97
WHEN client->check_on_init( ).
96
98
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` )
101
105
)->input( client->_bind_edit( name ) ).
102
106
client->view_display( view->stringify( ) ).
103
107
@@ -106,7 +110,9 @@ CLASS z2ui5_cl_app_hello_world IMPLEMENTATION.
106
110
client->message_box_display( |Your name is { name }.| ).
107
111
108
112
ENDCASE.
113
+
109
114
ENDMETHOD.
115
+
110
116
ENDCLASS.
111
117
```
112
118
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