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

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @nikhitha24 

 

Greetings!!

 

Where you want to show the tool tip, tool tip only work on field level. Please let me know exact use case.

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

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

Hi @Dr Atul G- LNG ,

I need tool tip  as below.

 

nikhitha24_0-1701861733735.png

 This is based on the selection of Extension of Snapshot Retention

 

Hi @nikhitha24 

 

Create a variable with Type Lable

LearnNGrowAtul_0-1701862069974.pngLearnNGrowAtul_1-1701862083780.pngLearnNGrowAtul_2-1701862102942.png

 

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

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

Hi @Dr Atul G- LNG ,

 

How to add a tool tip for the multirow variable set.

I need to add a tool tip for this variable

 

nikhitha24_0-1701924850887.png