Validation Pattern For Property Pages

You can validate the input for Manufacturing Hub object attributes using the Extended Property Page, which enables you to follow a particular format. If you give an invalid value for an attribute in Property page, it shows an error message. If the attribute is not a valid value, you cannot save the attribute.

Validation Pattern Support in Configuration

The DELMIA Process Engineer (DPE) configuration tool provides two properties (Validation Pattern and Validation Pattern Description) for attributes. These properties are valid only for attributes of the data type string and of control type edit. You can enter a value for the attribute property Validation Pattern. Once this value is set, it is used to validate the value you input for that attribute in the property page. The string specified for Validation Pattern Description property describes a typical value that conforms to the validation pattern.

The validation of the attribute values you input is supported in the Extended Property dialog box in V5 DPM client and in the Property page in V5 PPR Navigator client and is checked against the Validation Pattern value specified for the attribute in DPE. This is the default behavior available in V5.

Disable the Validation Pattern in DPE

The attribute property Validation Pattern in the configuration tool must have an empty value. By default, all attributes have an empty value for Validation Pattern and therefore no check is done by default.

For example, on the property page, Attribute A has:

  • data type = string
  • control type = edit
  • Validation Pattern = ^ICS[0-9]{3}i$.

With this attribute set, you can give some value which starts with "ICS" followed by any numeral for the next three places and ends with character "i". If you give some value that does not start with "ICS" and changes the focus from edit control then you get an error message saying that the value given is not a valid one. This value cannot be saved. You can save the values only when the proper value is given. DPM supports the EExtended Property dialog boxExtended Property dialog box in DPM and in the Property page in PPR Navigator client, against the Validation Pattern value specified for the attribute in DPE. This is the default behavior.

Disable the Validation Pattern in DPM

When you set the environment variable DLM_MHI_READ_ONLY_REGEXP_ATTR to True, the attributes configured in DPE to use validation pattern are displayed as read only in the Property Page/Extended Property dialog box.
You cannot edit these attribute values in V5 client dialogs, and can modify the values only in DELMIA Process Engineer client where the validation is done.

Limitations

  • The validation using Validation Pattern is supported only when setting the value in the Extended Property dialog box in DPM and in the Property page in PPR Navigator clients.
  • No validation using Validation Pattern will be done if the attribute value is set using the contextual menu Properties command in DPM.
  • If the environment variable DLM_MHI_READ_ONLY_REGEXP_ATTR is set, the attributes are not be read-only while using the contextual menu Properties command in DPM. This behavior is available only in the Extended Property dialog box in V5 DPM client.
  • If the value is set through scripts, they are not be validated.
  • All the limitations of VB Script regular expression are valid.