Changing Color on the SAM Renewals Calendar

HenryD
Tera Guru

Hello, New to SAM Workspace a bit and only really done configurations on the table, I have a question on how can I change the colors on the Renewal Calender in Software Asset Workspace to show RED if the entitlement is expired, & show orange if its 60 days from expiring. I have other colors I need for certain dates as well but im trying to even figure out where can I go to make this happen, Thank you in Advance! 

 

Screenshot is my view of the Renewals Calendar

8 REPLIES 8

Shivalika
Mega Sage

Hi @HenryD 

 

Go to "sys_ux_macroponent" table with entry as "Renewal Calender Default" - something similar. Modify that - you should be getting your editing. 

 

Kindly mark my answer as helpful and accept solution if it helped you in anyway. This will help me be recognized for the efforts and also move this questions from unsolved to solved bucket. 

 

Regards,

 

Shivalika 

 

My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194

 

My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwNeEISQCY

Hello, yes i just found this page, is there an already an existing one i can modify or would i have to create a whole new one? 

@HenryD did you get the record ? If yes, then take an XML backup and continue modifying this one. 

 

Kindly mark my answer as helpful and accept solution if it helped you in anyway. This will help me be recognized for the efforts and also move this questions from unsolved to solved bucket. 

 

Regards,

 

Shivalika 

 

My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194

 

My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwNeEISQCY*

Hello I am editing the roadmap/fieldColorMaps record in the UX Client script for Renewal Calendar Default but now the color has changed to purple instead of what I told the script to do. 

 

This is what i currently have: 

function script({api, event}) {
    const today = new Date():
    const endDate = new Date(event['end_date']); //variable name im using to get the date
 
    const diffInTime = endDate - today;
    const diffInDays = Math.ceil(diffInTime / 1000 * 60 * 60 * 24));
    
    let progressColor = '#0AB8D9',
    let pillColor = 'blue';
 
    if (diffInDays < 0) {
         progressColor = 'red';
         pillColor = 'red';
     } else if (diffInDays <= 60) {
         progressColor = 'orange';
         pillColor = 'orange';
     }
 
return {
        setBarColor : {
            setColor: {
progress: progressColor,
pillColor: pillColor
            }
        }
    };
}
 
If you have any input that would be appreciated.