Administer > Status and notifications > Notifications > Send a notification using Format Control

Send a notification using Format Control

Applies to User Roles:

System Administrator

To send a notification using Format Control, follow these steps:

  1. Click Tailoring > Format Control.
  2. Search for and open the format control record for which you want to enable notification.
  3. Select an existing notification definition record or create a custom notification and note the name of the record. This notification is the target of the Format Control call.
  4. Click the Subroutines tab, or click Subroutines from More or the More Actions menu to create a Format Control subroutine with the following properties:

    NameValue
    Add

    The expression that is evaluated to determine whether to execute the specified RAD application every time that the corresponding format is used to add a record.

    Example: true

    (if you want a notification to be sent on any Add operation)

    Upd

    The expression that is evaluated to determine whether to execute the specified RAD application every time that the corresponding format is used to update a record.

    Example: true

    (if you want a notification to be sent on any Update operation)

    Del

    The expression that is evaluated to determine whether to execute the specified RAD application every time that the corresponding format is used to update a record.

    Example: true

    (if you want a notification to be sent on any Delete operation)

    Dis

    The expression that is evaluated to determine whether to execute the specified RAD application every time that the corresponding format is displayed.

    Example: true
    (if you want a notification to be sent every time the form is displayed)

    Note: This option is not typically used to create a notification.
    Initial

    The expression that is evaluated to determine whether to execute the specified RAD application every time that the corresponding format initially opens.

    Example: true

    (if you want a notification to be sent the first time the form displays)

    Note This option is not typically used to create a notification.

    Before

    Type false

    (to send a notification after an operation is made)

    ApplicationType us.notify
    Msg ID

    The message you want to display if the system cannot run the application or one of the Name/Value inputs is incorrect.

    Note This option is not typically used to create a notification.

    Error Message

    The error message you want to display if the system cannot run the application or one of the Name/Value inputs is incorrect.

    Note This option is not typically used to create a notification.

    Names and Values

    The names and values of the parameters to be passed into the RAD application.For the us.notify application, we can add the following parameters:

    name: The name of the notification definition record to be the target of the Format Control call. For example: CM Deny

    record: The record variable the notification should use. For example: $file

    names (optional): The array of values to display in the notification.


  5. To save your changes, click Save.
  6. Click OK.