Adding Constraint to Generate PreferredName

Procedure

  1. In the Palette, click the Constraint icon in the Declare Constraint section and then click the Declare Constraints compartment to add the constraint.
  2. Provide the following details for the constraint in the Properties window:
    • Name as AssignPreferredName.
    • Description as Build Preferred name if not entered.
  3. Double click the AssignPreferredName constraint to open up the Expression Editor.
  4. From the Condition Expression Palette, click the Expression icon and then click in the Condition compartment to insert it.
  5. In the Expression Properties, provide undefined(PreferredName).
  6. From the Actions Palette, click the Assign Action icon and then click in the Actions compartment to insert it. Provide the following properties:
    • Name as ActionName
    • Select PreferredName from the Assign dropdown.
    • In the Expression Editor, enter the following:
concat(FirstName, '_', LastName)