Setting the value of a target element to a constant

To set the value of a target element to a constant:
  1. In the Message Mapping editor Target pane, right-click the target element or attribute and click Enter Expression. Start of changeIf the target element or attribute has a default value, this value is added to the Edit pane.End of change
  2. Enter the required constant in the Edit pane and click Enter. When entering the constant, observe the following criteria:
    • Enclose string element values in single quotes.
    • Enter numeric element values without quotes.
    The Spreadsheet pane is updated with the value that you have defined.
You cannot set a value for a simple element if one of its ancestors also has a mapping. For example, you cannot map Properties from source to target, then set a value for Properties/MessageFormat.
Start of changeA target element can also be set to a WebSphere MQ constant. See Setting the value of a target element to a WebSphere MQ constant for further information.End of change
Related concepts
Message Mapping editor
Creating message mappings
Related tasks
Setting the value of a target element using an expression or function
Related reference
Message Mapping editor Target pane
Message Mapping editor Edit pane
Message Mapping editor Spreadsheet pane
Message mappings