Adding Constraint to Populate US States

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 USStates.
    • Description as Dependent drop-down for state if country US.
    • In the Use for variables section, select the AddressState checkbox.
  2. Double click the USStates constraint to open up the Expression Editor.
  3. From the Condition Expression Palette, click the Expression icon and then click in the Condition compartment to insert it.
  4. In the Expression Properties, provide Country='US'
  5. 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: State, California, New Jersey, Texas.
      Note: Only 3 states are added as an example. The whole list of states can be populated by providing the names as attributes.