Tool tip

nikhitha24
Tera Guru

Hi Team,

 

Can someone please help on the below query.

 Need to add a tool tip “Extend Snapshot of VM Server requests that have not yet been removed. Snapshots are extended to the maximum allowed retention (72 hours).”

nikhitha24_1-1701852295243.png

 I have written a script include to get the values for the table.

 

var getritmvalues = Class.create();
getritmvalues.prototype = Object.extendsObject(AbstractAjaxProcessor, {
    ritmvalue: function() {
        var ritm = this.getParameter('sysparm_ritm');
        var dataArr = [];
        var data = {};
        var rn = new GlideRecord('u_request_number');
        rn.addQuery('sys_id', ritm);
        rn.query();
        if (rn.next()) {
            if (rn.u_retention_period != '') {
                var gdt = new GlideDateTime(rn.u_remove_date);
                var hours = 60 * 60 * 72;
                gdt.addSeconds(hours);
                var new_remove_date = gdt.getDisplayValue();
            }
            data = {};
            data.ritm_number = rn.u_ritm_number.toString();
            //data.title = rn.u_ritm_title.toString();
            data.retention_period = rn.u_retention_period.toString();
            data.remove_date = rn.u_remove_date.toString();
            data.new_remove_date = new_remove_date;
            dataArr.push(data);
        }
        return JSON.stringify(dataArr);
    },
    type: 'getritmvalues'
});
 
Please help me on this.

 

5 REPLIES 5

Hi @nikhitha24 

 

On MRVS you cant create Tool tip, but when you add the variable under that then you can create. (Like normal variable)

*************************************************************************************************************
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]

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