Display server scripts messages for events in adaptive templates

You can display and customize success and error messages produced when running a server script for an event within the following adaptive templates for an application:

  • Adaptive list template

  • Adaptive edit template

  • Adaptive tile table template

  • Adaptive grid template

  • Adaptive splitter template

The display of success and error messages corresponds to the following fallback hierarchy on runtime:

  1. Success messages and error messages already contained in server scripts

  2. Customized success messages and error messages

  3. Default placeholder messages

    If you enter no customized error message and there is no error message contained in the server script, the error status from the server is displayed on runtime.

Prerequisites

  • You have a valid server script to select.

Procedure

  1. In the Adaptive Designer, in the Events section of the Settings/properties pane, select Settings for an event.

    Result: The Event dialog opens.

  2. In the Destination section, select Server Script as the destination type, and select the relevant server script as the destination target.

  3. To enable the display of a success message or an error message if the server script runs to success or to error, select the checkbox Display script response.

    Result: The sections Customize success message and Customize error message display in the Event dialog.

  4. Perform the following according to your use case:

    1. If your server script contains success and error messages, optionally write success and error messages as fallback messages in the Title and Message fields.

    2. If your server script does not contain success and error messages, optionally write customized success and error messages in the Title and Message fields.

    3. To use the default placeholder messages, including the error status from the server for an error, leave the Title and Message fields empty, ensuring that your server script does also not contain success and error messages.

Results

You have displayed and customized success and error messages when running a server script for an event within an adaptive template for an application.