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
- Create a segment.
- Add a criteria.
- Select a property of Date data type.
- 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:
- 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' )
- 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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.