Skip to content

Commit 305215c

Browse files
authored
Update dx.md
1 parent 1f77b3b commit 305215c

File tree

1 file changed

+20
-3
lines changed
  • docs/advanced/technical

1 file changed

+20
-3
lines changed

docs/advanced/technical/dx.md

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,26 @@ START-OF-SELECTION.
5656
```
5757
this is thew wy we can do it with abap2ui5:
5858
```abap
59-
"app
60-
"app
61-
"app
59+
CLASS z2ui5_cl_app_hello_world DEFINITION PUBLIC CREATE PUBLIC.
60+
PUBLIC SECTION.
61+
INTERFACES z2ui5_if_app.
62+
DATA pa_arbgb TYPE string.
63+
ENDCLASS.
64+
65+
CLASS z2ui5_cl_app_hello_world IMPLEMENTATION.
66+
METHOD z2ui5_if_app~main.
67+
68+
IF client->check_on_init( ).
69+
client->view_display(
70+
z2ui5_cl_xml_view=>factory(
71+
)->input( client->_bind_edit( pa_arbgb )
72+
)->button( text = 'post' press = client->_event( 'POST' ) ) ).
73+
ELSEIF client->get( )-event = 'POST'.
74+
client->message_box_display( |Input: { pa_arbgb }| ).
75+
ENDIF.
76+
77+
ENDMETHOD.
78+
ENDCLASS.
6279
```
6380

6481
### ALV

0 commit comments

Comments
 (0)