Illustrated Message in a Dialog
IllustratedMessage as content of sap.m.Dialog.
Z2UI5_CL_SMPC_APP_633
Controls
sap.m
UI5 1.98
The facts
- Repository
- abap2UI5/samples-controls
- Class
Z2UI5_CL_SMPC_APP_633- Source file
z2ui5_cl_smpc_app_633.clas.abap↗- Library
- sap.m
- UI5 entity
sap.m.IllustratedMessage- Demo kit sample
sap.m.sample.IllustratedMessageInDialog- SAP's own sample
- running at sdk.openui5.org ↗
- Minimum UI5
- 1.98
- In the playground
- runs in the browser, with no system and nothing installed
Keywords: illustratedmessage, illustrated, message, sap.m, illustratedmessageindialog, button, dialog
Controls it builds
Read out of the builder chain by the abap2UI5 linter, not from the category this sample is filed under — which is what makes “which samples build one of these” a question the catalogue can answer at all.
Libraries
Run it here
The sample running, in this page — the app on its own, with no editor over it.
Switch to Playground with this code
Nothing is installed and nothing is sent anywhere: the ABAP is compiled to JavaScript in this browser and runs against abap2UI5 itself.
The ABAP
z2ui5_cl_smpc_app_633.clas.abap — 91 lines
Click a number to link to a line — shift-click for a range.
Read it on GitHub ↗
" @keywords illustratedmessage illustrated message sap.m illustratedmessageindialog button dialog
" @summary IllustratedMessage as content of sap.m.Dialog.
" @origin sap.m.sample.IllustratedMessageInDialog - https://sdk.openui5.org/entity/sap.m.IllustratedMessage/sample/sap.m.sample.IllustratedMessageInDialog (status: generated - machine-written, not yet reviewed)
CLASS z2ui5_cl_smpc_app_633 DEFINITION PUBLIC.
PUBLIC SECTION.
INTERFACES z2ui5_if_app.
PROTECTED SECTION.
DATA client TYPE REF TO z2ui5_if_client.
METHODS view_display.
METHODS on_event.
METHODS popup_display.
PRIVATE SECTION.
ENDCLASS.
CLASS z2ui5_cl_smpc_app_633 IMPLEMENTATION.
METHOD z2ui5_if_app~main.
me->client = client.
IF client->check_on_navigated( ).
view_display( ).
ELSEIF client->check_on_event( ).
on_event( ).
ENDIF.
ENDMETHOD.
METHOD view_display.
DATA(view) = z2ui5_cl_ui5_view_builder=>factory( ).
view->ele( n = `View` ns = `mvc`
)->a( n = `xmlns:mvc` v = `sap.ui.core.mvc`
)->a( n = `xmlns` v = `sap.m`
)->a( n = `height` v = `100%`
)->tag( `Button`
)->a( n = `press` v = client->_event( `OPEN_DIALOG` )
)->a( n = `text` v = `Open Dialog`
)->a( n = `class` v = `sapUiSmallMarginBegin sapUiSmallMarginTop` ).
client->view_display( view->stringify( ) ).
ENDMETHOD.
METHOD on_event.
IF client->get_event( ) = `OPEN_DIALOG`.
popup_display( ).
ENDIF.
ENDMETHOD.
METHOD popup_display.
DATA(popup) = z2ui5_cl_ui5_view_builder=>factory( ).
popup->ele( n = `FragmentDefinition` ns = `core`
)->a( n = `xmlns` v = `sap.m`
)->a( n = `xmlns:core` v = `sap.ui.core`
)->ele( `Dialog`
)->a( n = `title` v = `Error`
)->a( n = `contentWidth` v = `20rem`
)->a( n = `verticalScrolling` v = `false`
)->a( n = `state` v = `Error`
)->ele( `buttons`
" original onDialogClose - closed on the client, no round-trip
)->tag( `Button`
)->a( n = `text` v = `Close`
)->a( n = `press` v = client->follow_up_action( client->cs_event-popup_close )
)->end(
)->tag( `IllustratedMessage`
)->a( n = `illustrationType` v = `sapIllus-UnableToLoad` ).
client->popup_display( popup->stringify( ) ).
ENDMETHOD.
ENDCLASS.
More in sap.m
- Avatar with badgeValueState — This sample demonstrates different badge value states of the Avatar.
- Avatar with Visual Affordance — This sample demonstrates different combinations of types, shapes, and sizes of the Avatar…
- Illustrated Message Enable Vertical Responsiveness — Demonstrates the IllustratedMessage's 'enableVerticalResponsiveness' property.
- A demo application that imports a Custom Illustration Set from an npm package — Shows how to import a Custom Illustration from an npm package into a UI5 application for…
- 'NoActivities' Illustrated Message in a Card — IllustratedMessage as content of sap.f.Card. 'NoActivities' illustration type is being us…
- 'NoEmail' Illustrated Message in a Card — IllustratedMessage as content of sap.f.Card. 'NoEmail' illustration type is being used fo…
- Default Illustration Set (sapIllus) — The available illustrations are from the default ('sapIllus') illustration set.
- Illustrated Message in a Page with Configurable Properties (Custom Illustration Set) — The available properties of the IllustratedMessage are configurable in this sample. The a…
- Illustrated Message in a Page with Configurable Properties (TNT Illustration Set) — The available properties of the IllustratedMessage are configurable in this sample. The a…
- Illustrative style illustrations using the 'src' property — The available illustrations are from the default illustration set with the use of the 'sr…
- Illustrated Message Session Timeout — All applications that require user sign-in should employ a mechanism for automating user…
- Dynamic Date Range — The dynamic date range is a control that offers a choice of absolute and relative dates…
On this page