Date range interactive filter code issues

Priya Bonam
Tera Expert

I have loaded the attached update set , i can see that date range filter on dashboards as added, however data is not getting reflected on reports/dashboards as dates selected.

 

Please help where i can correct this on macros.

 

 

line 82

<button type="button" onclick="new GwtDateTimePicker('${jvar_uid}-fromSelectDate', '$[gs.getSession().getUser().getDateFormat()]', false);" title="Choose date..." class="btn btn-default icon-calendar" style="margin-right: 1px; vertical-align: top;"></button>
line 94
 
<button type="button" onclick="new GwtDateTimePicker('${jvar_uid}-toSelectDate', '$[gs.getSession().getUser().getDateFormat()]', false);" title="Choose date..." class="btn btn-default icon-calendar" style="margin-right: 1px; vertical-align: top;"></button>
 

 

3 REPLIES 3

AndersBGS
Tera Patron
Tera Patron

Hi @Priya Bonam ,

 

Not sure I understand your question. Is it the date range buttons not working, or just that date range filter not reflecting at reports? If reports doesn't reflect the date range, did it work on the instance where you exported the update set? 

 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.

 

best regards

Anders

If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.

Best regards
Anders

Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/

With date range filter , data is not reflecting on reports.

I got the update set from the community.

 

https://www.servicenow.com/community/platform-analytics-forum/interactive-filter-quot-between-dates-...

Hi @Priya Bonam ,

 

Ohhh, okay - I have come a cross  this post several times for custom date range interactive filter, but have never tried it myself. I could advise you to look towards analytics workspace instead due to two reasons:

 

  1. the date range filter comes OOTB
  2. analytics workspace / platform analytics is the way ServiceNow will go in the future. 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.

 

best regards

Anders

If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.

Best regards
Anders

Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/