- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2015 11:23 AM
Thanks ... that did the trick.
I had manually created the construct for the class in the script include following some documentation. This also helps to clarify the error message but is a bit contradictory when it comes to the documentation. There is a Wiki that indicates the scope of the application is needed and suggests that global is in reference to the global scope. In reality this really should be part of the construct regardless of scope, and in addition to that, the "Access From" field setting and access controls on the application form will ultimately determine if the script include is actually accessible. Overall the documentation for this product is fantastic but I found this to be a bit confusing.
Thanks to all who assisted ... well appreciated !
- 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?