--- title: "Show alert (Popup)" slug: "core-popup-actor" updated: 2026-04-02T06:57:14Z published: 2026-04-02T06:57:14Z canonical: "docs.lobstersoftware.com/core-popup-actor" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # Show alert (Popup) *See also:* [Show alert](/v1/docs/en/freaction-show-alert), [Abort](/v1/docs/en/core-abort-actor) > [!NOTE] > Event action – Abstract > > **Purpose:** Displays a popup (as a notification or alert) with configurable content to the user in an interactive session:. > > > [!TIP] > > Tooltip > > > > - **Usage:** The graphical user interface allows any number of alternative blocks of event actions to be defined, which are selected depending on rules according to the If/Then/Else scheme. > > - **Parameter:** > > - Type: Notification of the category 'Success', 'Info', 'Warning', 'Error' OR 'Alert' that appears as a popup dialog. > > - Execute on commit: decides whether the message is issued immediately OR only on successful completion of the transaction. > > - Title content builder: determines the text for the title line in the popup. > > - Message content builder: determines the message text in the popup. > > - Close after (seconds): Determines the display duration for a notification (not relevant for the 'Alert' type, because it remains visible until the 'OK' button is clicked). > > - **Output:** Popup appears. > > - **NOTE:** In contrast to the [Show alert](/v1/docs/en/freaction-show-alert) in the form, the [Show alert (Popup)](/v1/docs/en/core-popup-actor) does not access localization for localizable content (enumeration values, role names, etc.) unless the value resolver [Value from localization](/v1/docs/en/core-resource-resolver) is used. The [Show alert (Popup)](/v1/docs/en/core-popup-actor) event action displays a configurable popup to the user in an interactive session, either as a *notification* (on the right edge of the screen) of a specific type, or as an *alert* (centered dialog with **OK** button to acknowledge the message). **NOTE:** The [Show alert](/v1/docs/en/freaction-show-alert) action (in the context of [Behaviors](/v1/docs/en/frebehaviours) in forms) and the [Abort](/v1/docs/en/core-abort-actor) can mimic alerts, although the type does not completely match by name. Functional details differ as well (see 'Configuration' below). ## Configuration ![images/download/attachments/177912202/image-2024-9-18_10-13-12-version-1-modificationdate-1726647192266-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-9-18_10-13-12-version-1-modificationdate-1726647192266-api-v2.png) ### 'Type' parameter The **Type** parameter defines the appearance of the popup at runtime and also has functional implications: | Type | Features | Example | | --- | --- | --- | | **Alert** (corresponds to an 'Alert box' in the [Show alert](/v1/docs/en/freaction-show-alert) and 'Semantic Exception' in the [Abort](/v1/docs/en/core-abort-actor)) | A dialog appears, which can be closed by clicking the **OK** button or by clicking the 'x' symbol (top right). **NOTE:** - Alerts always appear centered with respect to the entire browser window and cannot be moved or resized by the user. They cover the client session with shading that blocks access to other interactive client features. - However, event handling does not stop until the user closes an alert displayed by [Show alert (Popup)](/v1/docs/en/core-popup-actor), but continues to run in the background. If further alerts are opened during this process, they may appear 'stacked', so that the last one displayed must usually be acknowledged first. - The **Close after (seconds)** parameter does not apply to the 'Alert' type! | ![images/download/attachments/44935410/image2020-7-9_18-45-50-version-1-modificationdate-1594313153321-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2020-7-9_18-45-50-version-1-modificationdate-1594313153321-api-v2.png) | | **Info** ([Styles](/v1/docs/en/core-style) Properties `strongBackgroundColor`, `strongBackgroundContrastColor`, `successColor` for the icon) | A notification appears (see illustrations on the right), which is displayed at the right edge of the browser window below previous *notifications*, if applicable. **NOTE:** - *Notifications* can be closed via the 'x' icon (top right). - The **Close after (seconds)** parameter in configuration determines the duration an alert is dsplayed and when it automatically disappears (setting: >0 seconds) or whether it should remain displayed 'indefinitely' (until interactive closing) (setting: 0 seconds). - The display duration or interactive closing of *notifications* has no influence on event handling, which is not paused but resumed immediately after a *notification* is displayed. - If many *notifications* are displayed at the same time, they may be displayed outside the visible display area so that the user does not see them at all, or only when they 'move up' because *notifications* displayed above are closed automatically or interactively. The text and background colors can be defined for all popup types via the [Styles](/v1/docs/en/core-style) properties given on the left, deviating from the standard shown on the right. However, it should be taken into account that customizations for the scope of the [Styles](/v1/docs/en/core-style) apply *globally* (to all popupsof the type) and the same color values can also affect system-generated *notifications* and other functionalities ([Abort](/v1/docs/en/core-abort-actor), [Show alert](/v1/docs/en/freaction-show-alert), [Set hint](/v1/docs/en/freaction-set-hint), etc.) or color values directly or indirectly (via inheritance, see [Styles](/v1/docs/en/core-style)). | ![images/download/attachments/44935410/image2020-7-9_18-41-8-version-1-modificationdate-1594312870641-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2020-7-9_18-41-8-version-1-modificationdate-1594312870641-api-v2.png) | | **Error** ([Styles](/v1/docs/en/core-style) Properties `errorColor`, `errorContrastColor`) | ![images/download/attachments/44935410/image2020-7-9_18-44-28-version-1-modificationdate-1594313071193-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2020-7-9_18-44-28-version-1-modificationdate-1594313071193-api-v2.png) | | **Warn** ([Styles](/v1/docs/en/core-style) Properties `warnColor`, `warnContrastColor`) | ![images/download/attachments/44935410/image2020-7-9_18-42-24-version-1-modificationdate-1594312946423-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2020-7-9_18-42-24-version-1-modificationdate-1594312946423-api-v2.png) | | **Success** ([Styles](/v1/docs/en/core-style) Properties `warnColor`, `warnContrastColor`) | ![images/download/attachments/177912202/image2020-7-9_18-41-47-version-1-modificationdate-1726646464220-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2020-7-9_18-41-47-version-1-modificationdate-1726646464220-api-v2.png) | ### 'Execute on commit' option If the **Execute on commit** option is set differently from the default, then the relevant popup appears only if a 'commit' is made on the database at the end of the event processing (i.e. if necessary after processing a complete event chain). This is only the case if the event handling is triggered at all in the context of a transaction and runs without errors and without an [Abort](/v1/docs/en/core-abort-actor) (i.e. without *rollback*). **IMPORTANT:** In connection with the **Execute on commit** option, it is important to consider the following aspects: - A [Custom action event](/v1/docs/en/core-custom-action-events) does not automatically require a transactional context. Without this, popups for which the **Execute on commit** option is set will not be displayed. - Also, when running [Tests](/v1/docs/en/core-testing-set) for event handlers, the 'commit' is omitted, so popups do not appear for which the **Execute on commit** option is set. - The [Resolvers](/v1/docs/en/core-i-value-resolver) for the content of **Title** and **Message** of a popup are only processed if the **Execute at commit** option is set. This means that the content of the message (if relevant) takes into account the data state of variables and objects that applies at the time of the *commit*, not the one at the time the [Show alert (Popup)](/v1/docs/en/core-popup-actor) event action is executed. The only information 'held' at the time of the event action for later use is the current *reference object* (`entity`). However, only a reference is 'noted' and not a snapshot, so that [Resolvers](/v1/docs/en/core-i-value-resolver) that refer to the *reference object* again 'resolve' the possibly deviating data status during the commit. ### 'Title' and 'Message' parameters Strings are expected as values for the **Title** and **Message** parameters, which appear at different positions in the alert format depending on the **Type** (see above). **NOTE:** For the **Title** parameter, the default value '`Title`' appears if the string returned by the value resolver contains no characters or 'no value' (`null`) is returned. If one of the used value resolvers returns a data type other than `String` at runtime, i.e. no string as *return value*, then an attempt is made to automatically convert the *return value* into a string: - A Boolean value is converted to the text value `true` or `false`, for example. - Instead of a complex data object for an entity e.g. of the [Users](/v1/docs/en/base-user) type, a text value like `1901:de.lobster.scm.base.security.user.User@5ffd2762` appears. - If a list is returned, then each element is converted to a string and the strings of all elements appear separated by commas between square brackets. As the following expression illustrates, this concept also works recursively when a list value is in turn a list: `[2021, is a good year for, [decisions, wine, Lobster]]` - Instead of the localization for the value of a dynamic enumeration, its internal name (`name`) appears, e.g. `CNE` for the 'Consignee' [Company type](/v1/docs/en/base-company-type). **NOTE:** In the context of a form, [Show alert](/v1/docs/en/freaction-show-alert) automatically accesses the [Localization](/v1/docs/en/core-localization-entry) or [Company specific localization](/v1/docs/en/core-owner-based-localization-overrides) to consider localizable content in the title or message text. [Show alert (Popup)](/v1/docs/en/core-popup-actor), on the other hand, always accesses the relevant internal name of a localizable content and takes localizations into account only if the value resolver [Value from localization](/v1/docs/en/core-resource-resolver) is used (see example). ### 'Close after (seconds)' parameter The specification for the **Close after (seconds)** parameter only applies to notifications with a **Type** from the *notification* category, since the *alert* **Type** is not closed automatically.. With a value of 0 seconds, a *notification* is displayed indefinitely, that is, until the user uses the 'x' icon to close it. ## Example When triggering selected events for all objects of the 'Business transaction object' type, a notification of the *notification* type : Info should appear if a 'Super user limited' (role) is logged in. The popup should remain open indefinitely and provide the 'Super user limited' with information about the type of object (in the **Message**) and the event triggered (in the **Title**), as seen in the following runtime example for the 'Delete' event for an order: ![images/download/attachments/177912202/image2021-4-29_13-10-36-version-1-modificationdate-1726646464251-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2021-4-29_13-10-36-version-1-modificationdate-1726646464251-api-v2.png) Configuration: | An event handler is created and configured as shown to the right: - The **Triggering events** listed here are the standard events 'Create' and 'Delete' (see [Common action event](/v1/docs/en/core-common-action-event)) and a [Custom action event](/v1/docs/en/core-custom-action-events) 'Xf Test'. - As a **Validating rule**, an AND conjunction is configured from a [Check type](/v1/docs/en/core-check-type-rule) on the type 'Business transaction object' and a [Role rule](/v1/docs/en/base-role-rule) that restricts the scope of the event handling to the role 'Super user limited'. **NOTE:** The **Type** 'Business transaction object' specified in the [Check type](/v1/docs/en/core-check-type-rule) is a *parent* type for all business objects ([Shipments](/v1/docs/en/shp-shipment), [Orders](/v1/docs/en/ord-order), [Manifests](/v1/docs/en/mfst-manifest), [Common business object](/v1/docs/en/orchestration-common-bto)). Nevertheless, the message should indicate the *specific* type of the respective entity. | ![images/download/attachments/177912202/image2021-4-29_14-29-34-version-1-modificationdate-1726646464218-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2021-4-29_14-29-34-version-1-modificationdate-1726646464218-api-v2.png) | | --- | --- | | The only **Action on passed rule** here is configured to be a [Show alert (Popup)](/v1/docs/en/core-popup-actor) event action as shown to the right: - The **Type** 'Info' specifies the output of a *notification* with the respective appearance. - The **Execute on commit** option has been omitted here because the attempt to delete or create a business transaction object should already be displayed immediately. Otherwise, the custom action event 'Xf Test', which does not imply a transaction, would not trigger a message. - In the **Title** parameter, the [Triggering event](/v1/docs/en/core-caused-event-resolver) value resolver is used to indicate which triggering event has occurred. - The **Message** parameter refers to the `entityClass` variable, which is automatically assigned the class, i.e. the *specific* type of *reference object*, by the system*.* - The **Close after (seconds)** parameter is assigned the value `0` so that the *notification* display duration is unlimited. | ![images/download/attachments/177912202/image2021-4-29_14-30-23-version-1-modificationdate-1726646464215-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2021-4-29_14-30-23-version-1-modificationdate-1726646464215-api-v2.png) | Variant: Instead of the internal identifiers (`name` for the triggering event, class name for the business object type), the following configuration of the [Show alert (Popup)](/v1/docs/en/core-popup-actor) event action is to display the corresponding texts from the [Localization](/v1/docs/en/core-localization-entry): ![images/download/attachments/177912202/image2021-4-29_14-31-33-version-1-modificationdate-1726646464212-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2021-4-29_14-31-33-version-1-modificationdate-1726646464212-api-v2.png) | The [Show alert (Popup)](/v1/docs/en/core-popup-actor) event action is reconfigured within the existing event handling as shown to the right: - The **Title** is now defined by a value resolver of [Value from localization](/v1/docs/en/core-resource-resolver) type, which has as the class name `de.lobster.scm.actionevent.CommonActionEvent`([Common action event](/v1/docs/en/core-common-action-event)) as a **Bundle** and the *return value* of the previously used resolvers [Triggering event](/v1/docs/en/core-caused-event-resolver) as the **Resource**. **NOTE:** The suitable **Bundle** name could be determined in this case by 'backward search' in the localization, by filtering on the output name (`name`) 'DELETE' as *resource name* around then the most plausible *bundle name* to select. | ![images/download/attachments/177912202/image2021-4-29_14-33-0-version-1-modificationdate-1726646464197-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2021-4-29_14-33-0-version-1-modificationdate-1726646464197-api-v2.png) | | --- | --- | | - The [Value from localization](/v1/docs/en/core-resource-resolver) value resolver is also used for the **Message**. However, here the variable component is linked in the form of the variable `entityClass` in the **Bundle** parameter, while the static text `$name` is specified for the **Resource**. **NOTE:** This relies on the convention that the definition of each class in **Lobster Data Platform/Orchestration** is localized by a combination of *bundle name* = full class name and *resource name* = `$name`. | ![images/download/attachments/177912202/image2021-4-29_14-33-38-version-1-modificationdate-1726646464192-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2021-4-29_14-33-38-version-1-modificationdate-1726646464192-api-v2.png) |