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

Unable to select a date from a Calendar Control



Unable to select a date from a Calendar Control, after adding a Date control, in a repeating grid, with multiple action sets (such as DT, Section refresh with DT and Activity (compare end date to start date)). The issue occurs on selecting and unselecting the date and repeating the action multiple times.

Error Messages

Not Applicable

Steps to Reproduce

  1. Create a Date control in a repeating grid with Action Set (End date must be after the Start date. The Start date can be before or after the Current date).
  2. Select the End date to be before the Start date. Now, select the End date after the Start date.
  3. Repeat Step 2 multiple times.

Root Cause

Multiple action sets were configured on the Calendar control.


Perform either of the following steps to resolve the issue:
  • Use the activity to validate dates in separate action sets not under refresh.

  • Create a new editValidate rule using the below code:
if (theValue.trim().length() == 0) {
return false;
ClipboardPage pgParent = theProperty.getTopLevelPage(); // get your top level page here where your property reside that is compared
java.util.Date startDate = tools.getDateTimeUtils().parseDateTimeString(pgParent.getString("startDate")) ;
java.util.Date endDate = tools.getDateTimeUtils().parseDateTimeString(theValue);
boolean comparison = endDate.before(startDate);
theProperty.addMessage("endDate is before date: " + startDate);
return false;

Published December 9, 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