Skip to content

Commit bf79eae

Browse files
Update Demo 300 and 301 (#406)
1 parent 2ce7a22 commit bf79eae

3 files changed

+6
-6
lines changed

src/z2ui5_cl_demo_app_000.clas.abap

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ ENDCLASS.
2828

2929

3030

31-
CLASS Z2UI5_CL_DEMO_APP_000 IMPLEMENTATION.
31+
CLASS z2ui5_cl_demo_app_000 IMPLEMENTATION.
3232

3333

3434
METHOD z2ui5_if_app~main.

src/z2ui5_cl_demo_app_300.clas.abap

+4-4
Original file line numberDiff line numberDiff line change
@@ -371,10 +371,10 @@ CLASS z2ui5_cl_demo_app_300 IMPLEMENTATION.
371371
WHEN 'CLICK_HINT_ICON'.
372372
z2ui5_display_popover( `button_hint_id` ).
373373
WHEN 'handleStatusPressed'.
374-
client->message_box_display( title = `Error description` "#TO_DO: Use Dialog instead of Mesage_Box, in order to display custom title instead of default title, and to hide information icon.
375-
* client->dialog_display( title = `Error description`
376-
text = `Product was damaged along transportation.`
377-
).
374+
client->message_box_display( title = `Error description`
375+
type = `` "Keep this empty to use the custom title instead of the default message type as title
376+
text = `Product was damaged along transportation.`
377+
actions = VALUE string_table( ( `OK ` ) ) ). "Add space after 'OK' to prevent the button type from being 'Emphasized'
378378
ENDCASE.
379379

380380
ENDMETHOD.

src/z2ui5_cl_demo_app_301.clas.abap

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ ENDCLASS.
3737

3838

3939

40-
CLASS Z2UI5_CL_DEMO_APP_301 IMPLEMENTATION.
40+
CLASS z2ui5_cl_demo_app_301 IMPLEMENTATION.
4141

4242

4343
METHOD display_view.

0 commit comments

Comments
 (0)