Skip to content

Commit 9748ea8

Browse files
authored
Update popups.md
1 parent 4f809b4 commit 9748ea8

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

docs/development/popups.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,16 @@ Check out the popup to confirm, for example:
6565
CASE abap_true.
6666
6767
when client->check_on_init( ).
68-
client->nav_app_call( z2ui5_cl_pop_to_confirm=>factory( `Can you confirm this?` ) ).
68+
DATA(lo_popup) = z2ui5_cl_pop_to_confirm=>factory(
69+
i_question_text = `Can you confirm this?`
70+
i_event_confirm = `CONFIRM`
71+
i_event_cancel = `CANCEL` ).
72+
client->nav_app_call( lo_popup ).
6973
70-
WHEN client->check_on_event( z2ui5_cl_pop_to_confirm=>cs_event-confirmed ).
74+
WHEN client->check_on_event( `CONFIRM` ).
7175
client->message_box_display( `the result is confirmed` ).
7276
73-
WHEN client->check_on_event( z2ui5_cl_pop_to_confirm=>cs_event-canceled ).
77+
WHEN client->check_on_event( `CANCEL` ).
7478
client->message_box_display( `the result is rejected` ).
7579
7680
ENDCASE.

0 commit comments

Comments
 (0)