Adding Constraint to assign values to Country

Procedure

  1. In the Palette, click the Constraint icon in the Declare Constraint section and then click in the Declare Constraints compartment to add the constraint.
    • Name as AssigningValuesToCountry.
    • Description as Assigning Values to Country.
    • In the Use for variables section, select the Country checkbox.
  2. Double click the AssigningValuesToCountry constraint to open up the Expression Editor.
  3. From the Actions Palette, click the Select Action icon and then click in the Actions compartment to insert it. Provide the following properties:
    • No value as No.
    • Select Type as Enum.
    • Column as 1.
    • Select the Header checkbox.
    • In the Attributes section, click the Add icon to add the following attributes: Country Name, US, UK, India.