Working with Messages

Create messages to define named text blocks that can be used in labels and messages.

  1. Open the message editor:
    1. Choose More Editors >Messages.
    2. Select or create a Message Library in which to create or maintain the message. Create a Library for Modeled Properties or Global Objects

      The message editor is opened.

  2. To create a message:
    1. Click New and enter the Message Name, Language, and optional Description.Note:  Each message must have a unique name. It cannot use the same name as a help text.
    2. Enter the text in the Text field.
    3. Optionally, set the Severity. For more information, see Severity.

      Message EditorDefine Messages form

  3. To delete a message, select the message and choose Edit >Delete Message.

    Caution: Be careful when deleting a Message library. It may contain not only messages, but also help texts and various kinds of language setups.

  4. To save new or modified messages, choose File >Save, or click OK to save all messages and close the editor.
  5. To reference messages in ProcScript:
    • Use the $text function to reference a specified message or help text from all triggers except those used for reports and services.
    • Use the $textexist function to check if the specified message or help text exists before you try to reference it.
  6. To use message texts as labels:
    • Load text into a label to be displayed at runtime.

      For example, specify $text(MessageName) as the label text. Do not use quotation marks ("") around MessageName.

    • Load text into a field at runtime. You would commonly fill static fields in the exec operation of a component by assigning the $text call to the field.

      For example, FieldName.EntityName=$text(MessageName).

Related Topics