- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2015 09:22 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2016 09:33 PM
HI Sidarth...
i am using global.AbstractAjaxProcessor then also its giving same error...
can you please help me in this..
my script include..
var counttest = Class.create();
counttest.prototype = Object.extendsObject(global.AbstractAjaxProcessor, {
counttest: function() {
vgs.log ('AAAA:This script is executing');
var gr = new GlideRecord('incident');
gr.query();
if(gr.next())
{ //Added this one
var datedif = gs.dateDiff(gr.sys_created_on,gs.nowDateTime(), false);
gs.log('AAAA:'+datedif);
return datedif;
}
},
type: 'counttest'
});
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2016 11:02 PM
I tried the same thing in my instance and I did not get any error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2016 11:03 PM
Can you let me know if you are using this in an application scope and whether client callable is selected?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2016 02:01 AM
hey Sidarth ..
My application scope is global ..... and yes i have checked client callable check box ...
and i am also not getting any error but the output i am getting is NULL