var CW_TestCMNLoc = Class.create(); CW_TestCMNLoc.prototype = Object.extendsObject(AbstractAjaxProcessor, { getcmnlocentry: function(){ var gr_sys_id = this.getParameter('sysparm_gr_id'); var table_name = this.getParameter('sysparm_table_name'); var gr = new GlideRecord(table_name); gr.addQuery("group.sys_id", "CONTAINS", gr_sys_id); gr.query(); if(gr.next()){ return true; }else{ return false; } }, type: 'CW_TestCMNLoc' });
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter