Validation Pattern For Property Pages

You can validate the input for attributes for Manufacturing Hub objects using the Extended Property Page.  It is also possible to follow a particular format. If you gives an invalid value for an attribute in Property page it should show an error message. If the attribute is not a valid value, the saving of the attribute will not be allowed.

Validation Pattern Support in Configuration

Two properties "Validation Pattern" and "Validation Pattern Description" for attributes are available in the DELMIA Process Engineer (DPE) configuration tool. This property is valid only for attributes of data type string and of control type edit. You can enter a value for the attribute properties "Validation Pattern". This value will be the Validation Pattern against which the value input by you for that attribute in the property page will be validated. The string specified for "Validation Pattern Description" property describes a typical values which conforms to the validation pattern.
The validation of the attribute values input by you is supported in the Extended Property Panel in V5 DPM client and in the Property page in V5 PPR Navigator client, 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 attributes property Validation Pattern in configuration tool must have an empty value. By default all attributes have empty value for Validation Pattern and hence no check is done by default.

Example, Attribute A has data type string, control type edit, and Validation Pattern has the value ^ICS[0-9]{3}i$. The Validation Pattern attribute is displayed in property page.
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 which does not start with "ICS" and changes the focus from edit control then an error message comes 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.
The DPM supports the Extended Property Panel 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

Set the environment variable DLM_MHI_READ_ONLY_REGEXP_ATTR to True, the attributes configured in DPE to use validation pattern, will be displayed as read only in the Property Page/Extended Property Panel.
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 Panel 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 will not be read-only while using the contextual menu Properties command in DPM. This behavior is available only in the Extended Property Panel in V5 DPM client.
  • If the value is set through scripts, they will not be validated.
  • All the limitations of VB Script regular expression are valid.