Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

How to display date time validation message on top of harness?

SA-9020

Summary



You are using the OOTB DateTime control on a field for multi-criteria reseach system. You have two properties, textinput and date time, in the section. When you fill in the datetime field with an incorrect date format (for example: 456/36/2015), and submit, an error is raised to notify the that the format is incorrect. This error is displayed by hovering on the red cross next to the date field. But, you want to display this error in the @baseclass.Errors.

Error Messages



Not Applicable

Steps to Reproduce

  1. Create a Section, and set a text field and a date time property.
  2. Create a flow action and drag the above created section into it.
  3. Create a flow and call the flow action.

Root Cause



The root cause of this problem is a defect in customer application code/rules. This is expected behaviour. If the date time property is giving error message hovering the red cross next to property, it is triggering the client side validation. You can display error message on top of harness only when it is a server side validation and the error message is present in clipboard.

Resolution



This issue is resolved through the following Local-change:
  1. Set the property type as “text” for date time property so property type validation is not triggered.
  2. Set the edit validate rule as blank so that property does not associate with 'validation type'
  3. Create an activity, call the same activity in the post processing of the flow action (in action tab).
  4. Create validation rules (for validations on the property) and call them in activity.

Published June 12, 2015 - Updated October 8, 2020

Was this useful?

100% found this useful

Have a question? Get answers now.

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

Did you find this content helpful?

Want to help us improve this content?

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