Name

global.ContextActionsAjax

Description

A few utility scripts to call from the client context actions

Script

var ContextActionsAjax = Class.create();

ContextActionsAjax.prototype = Object.extendsObject(AbstractAjaxProcessor, {

getLabel : function() {
   var lbl = new GlideRecord('sys_documentation');
   lbl.addQuery('name', this.getType());
   lbl.addQuery('element', this.getValue());
   lbl.query();
   if (lbl.next())
       return lbl.label;
 
   return '';
},
  
setWatchField: function() {
    gs.getSession().setWatchField(this.getParameter("sysparm_id"));
},	
  
clearWatchField: function() {
    gs.getSession().clearWatchField();
},

type: "ContextActionsAjax"
});

Sys ID

936ee1210a0a0b8e0045bb197955d507

Offical Documentation

Official Docs: