Question
Remove the timestamp filter on table/grid
We have multiple dynamic table/grids that display Receipt Date of type Date. Not sure why some Receipt Date filters on the tables/grids include timestamp while others do not. My requirement need the timestamp to be removed and only be filtered by date instead of date and time.
Please see attached pics to see what I mean. The highlighted yellow is what need to be removed/disabled.
Any help is much appreciated.
Thank you
***Edited by Moderator Marissa to update Type from General to Product***
Hello KatieMai ,
If the column type of the date field is only DATE, then we see only Date to be selected in the date popover and it does NOT include timestamp field.
If the column type of the date field is DATETIME, then we see Date and time to be selected in the date popover and it does include timestamp field,
To confirm this theory, the implementation is present in section that belongs class CL:Pega-ColumnFilterCriteria with name pyGridFilterRangeFields in the ruleset Pega-Gadgets:08-01-01
If we open the visibility of the From and To fields in the section, it confirms the same as shown below.
For Date :
For Date Time :
So, this is the reason you would see for timestamp for some columns and dont see timestamp for some fields
If you would like to not to see timestamp for your grid on datetime fields too, then the section (CL:Pega-ColumnFilterCriteria with name pyGridFilterRangeFields in the ruleset Pega-Gadgets:08-01-01) is available, you can save as into the specific application ruleset and do the customization on visibility condition or change the datetime field configuration. I did it and that does not include timestamp.
Hope this helps!
Please feel free to reply for any questions.
Thank you,
Regards, Cherb.