Skip to content

Commit 40eeccc

Browse files
authored
Update popups.md
1 parent 2633992 commit 40eeccc

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

docs/development/popups.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ To display a popup, use the method `client->popup_display` instead of `client->v
1515
1616
DATA(lo_popup) = z2ui5_cl_xml_view=>factory_popup(
1717
)->dialog( `Popup - Info`
18-
)->text( `this is an information shown in a popup` ).
18+
)->text( `this is an information shown in a popup` ).
1919
client->popup_display( lo_popup->stringify( ) ).
2020
2121
ENDMETHOD.
@@ -62,15 +62,17 @@ Check out the popup to confirm, for example:
6262
```abap
6363
METHOD z2ui5_if_app~main.
6464
65-
IF client->check_on_init( ).
66-
client->nav_app_call( z2ui5_cl_pop_to_confirm=>factory( `Can you confirm this?` ) ).
67-
ENDIF.
65+
CASE abap_true.
6866
69-
CASE client->get( )-event.
70-
WHEN z2ui5_cl_pop_to_confirm=>cs_event-confirmed.
67+
when client->check_on_init( ).
68+
client->nav_app_call( z2ui5_cl_pop_to_confirm=>factory( `Can you confirm this?` ) ).
69+
70+
WHEN client->check_on_event( z2ui5_cl_pop_to_confirm=>cs_event-confirmed ).
7171
client->message_box_display( `the result is confirmed` ).
72-
WHEN z2ui5_cl_pop_to_confirm=>cs_event-canceled.
72+
73+
WHEN client->check_on_event( z2ui5_cl_pop_to_confirm=>cs_event-canceled ).
7374
client->message_box_display( `the result is rejected` ).
75+
7476
ENDCASE.
7577
7678
ENDMETHOD.

0 commit comments

Comments
 (0)