Attribute Validation Rules and Default Values

PowerDesigner can generate validation and default values for the edit boxes in the Create and Edit pages.

  1. Open the attribute property sheet, and click the Standard Checks tab.
  2. You can define minimum value and maximum values to control the value range.
  3. You can define a default value. A string, must be enclosed in quotes. You can also define the Initial value in the Details tab.
  4. You can define a list of values that will be used in a listbox, combo box or radio buttons.

Note: You can set a "list of values" on the Standard Checks tab of an attribute property sheet, and PowerDesigner will generate a combo box that includes the values. For validation rules, you can define the customized domain as well, and then select the domain you want to apply in the specified attribute.

You can also select which control style to use:

  • Combobox

  • Listbox

  • Radio buttons (if the number of values is low) For example: Mr. Ms.