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

DateTime control with custom format gets corrupted on refresh

SA-36769

Summary



When selecting "Display value using read-only formatting" option on a Date field with a refresh enabled and entire page refresh is performed and the resulting HTML DOM is displayed incorrectly.


Error Messages



Not Applicable


Steps to Reproduce

  1. Create a section with date time control. Enable "Display value using read-only formatting" in Presentation tab.
  2. Configure, On change-Refresh section action.
  3. At run time, enter an invalid value to the date field, say "aagdjd", ie any text invalid text, Click outside , the section refreshes and we see the date field takes up the <div> tag value


Root Cause



In this issue,when user enters an invalid date and refreshes the section,exception is thrown in generateDatePicker RUF when currProp.toDate() is called. To fix this issue,exception handling can be done while calling currProp.toDate() in generateDatePicker RUF

Resolution

Apply Hfix-33449

Published April 25, 2017 - Updated October 8, 2020

Was this useful?

0% 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