Color scheduled report pdf column
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2024 12:02 AM
Hi All,
We have a requirement where we have to color code the planned start date column as red if the planned start date is passed form the current date and time.
OOTB I see the conflict tab and Priority tab is showing red and green color highlighted in the scheduled report (pdf)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2024 01:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2024 01:46 AM
Hi @Aryan
My PDF Report
; (semi colon ) missing after orange.
and it will show color where plan end date = empty.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2024 02:58 AM
Thank you @Dr Atul G- LNG for your help now we are able to see the color in my pdf report.
We have also tried the below script include to filter all the change request where planned end date is passed as per the current date.
But it is not working can you also help us on this?
checkDate: function() {
var gr = new GlideRecord('change_request');
var currentTime = new GlideDateTime();
var oldTime = new GlideDateTime(gr.end_date);
if (currentTime > oldTime) {
return true;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2024 03:11 AM
Sorry my friend, I am not good in coding
My friends @Sandeep Rajput @Community Alums can help here.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2024 03:19 AM
No worries, I got it Thank you for your help!!