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

Segment Builder Relative Date displays incorrectly in dropdown

SA-98952

Summary



Segment Builder Relative Date displays incorrect dropdown on using the associated Date property.


Error Messages



Not Applicable


Steps to Reproduce

  1. Create a segment.
  2. Add a criteria.
  3. Select a property of Date data type.
  4. Select a Relative Date from the dropdown.


Root Cause



When an associated Date property is used, the Visibility condition for the Compare type and Relative Compare type dropdowns are configured incorrectly.


Resolution



Perform the following local-change:

Save as the INPUTFIELDS section in the EMBED-PEGAMKT-SVSCRITERIA-DATE class to the application ruleset and make the changes as below:
  1. Open the dropdown with the CompareType property and change the Visibility condition as below:

    (.DateTimeType != 'Relative' && .timeType != 'Relative'  && .DateTimeType != 'Is Null'  +&& .timeType != 'Is Null'  && .AggregateAvailable = false ) || ( .DateTimeTypeExtended != 'Relative'  && .TimeTypeExtended != 'Relative'  && .AggregateAvailable = true  &&  .DateTimeTypeExtended != 'Is Null' &&  .TimeTypeExtended != 'Is Null' &&  .TimeTypeExtended != 'count'  &&  .DateTimeTypeExtended != 'count'  )
     
  2. Open the dropdown with relativeCompareType property and change the Visibility condition as below:

    ((.DateTimeType = 'Relative' || .timeType = 'Relative') && .DateTimeType != 'Is Null' && .timeType != 'Is Null' && .AggregateAvailable = false) || ((.DateTimeTypeExtended = 'Relative'|| .TimeTypeExtended = 'Relative') && .AggregateAvailable = true)

Published January 17, 2020 - Updated December 2, 2021

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