Skip to main content
LinkedIn
Copied!

Table of Contents

Adding validations to identifiers

Ensure that identifier fields contain correct data by adding validation to the data that users enter, for example, passport numbers.

  1. In the Dev Studio Explorer panel, click App. In the search field, enter the name of the class of the identifier for which you want to add validation. For example, PegaPS-Data-Identifier-Passport.

  2. Right-click the class and create a property for the information that you want to validate, for example, PassportNumber.

    For more information about creating properties, see Properties - Completing the Create, Save As, or Specialization form.

  3. In the Advanced tab of the new property, fill the Validation section.

    For more information about validation fields, see Property form - Completing the Advanced tab.

  4. In the Dev Studio Explorer panel, click Passport User Interface Section IDNumber .

  5. Right-click the IDNumber property that the section contains and then click Delete.

  6. Drag and drop the new property into the section and save the section.

  7. Enable retrieval of the new property from the database by performing the following actions:

    1. In the current class, create a data transform rule. Use the pySetFieldDefaults data transform rule in the PegaPS-Data-Identifier-SSN class as a model.

    2. On the Definition tab, click Add a row.

    3. In the Target column, enter the new property.

    4. In the Source column, enter IDNumber.

Suggest Edit
Did you find this content helpful?

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Ready to crush complexity?

Experience the benefits of Pega Community when you log in.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us