Question
Incessant Technologies
AU
Last activity: 23 Aug 2016 3:24 EDT
Report Definition - Text property holding date values. Need to provide search criteria on date ranges like 'Yesterday' or 'Past 30 days' on this property
An Embedded page in the pyWorkPage contains a Text property where it holds Date values. Now, we are looking to provide search criteria option on this property to user where he can get the report data for 'Yesterday' or 'past 30 days'. we have raised an SR-A90558 on the same and were suggested to reach Pega Product Support. Could you please help us resolve this issue.
***Updated by Moderator: Lochan. Removed user added Ask the Expert tag. Apologies for confusion, shouldn't have been an end-user option***
Note that symbolic values like 'Today', 'Yesterday', 'Last 30 days' etc. only work with PRPC property type as 'Date' or 'DateTime'.
One option would be to create a new property (of type Date or DateTime) whose value is populated from the existing property (declare expression maybe) and then save that to a new column in the table. Use this property in your reports with symbolic values.
Alternatively, you can create SQL function which converts the String to Date (or DateTime) and then use with symbolic values in a report. Note that this would not perform well.