Color scheduled report pdf column

Aryan
Tera Contributor

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)

15 REPLIES 15

Aryan_0-1724920637156.png

 

Hi @Aryan 

 

My PDF Report

 

AGLearnNGrow_0-1724921109476.png

 

; (semi colon ) missing after orange.

 

AGLearnNGrow_1-1724921156892.png

 

 

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]

****************************************************************************************************************

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;

        }

 

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]

****************************************************************************************************************

No worries, I got it Thank you for your help!!