Tool tip
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2023 12:45 AM
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).”
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2023 04:01 AM
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]
****************************************************************************************************************
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]
****************************************************************************************************************