- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2020 04:23 AM
Hi,
I have a very strange scenario that I'm dealing with.
When I paste a sys_id into a report filter the row is returned without an issue...
THis is the strange part...When I insert a call to a simple script include that returns the same Sys Id..nothing is returned.
However notice that the Sys Id is in the filter section...so the report does recognize the script include.
This is my script inclulde....
I don't know if its an application problem or permission problem but I'm stuck.
THanks in advance for your attention.
RJP
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2020 04:27 AM
you client script prototype should be like below.
var myscriptinclude = Class.create();
myscriptinclude.prototype = Object.extendsObject(AbstractAjaxProcessor, {
myFunctionName: function(){
// write script here
},
type: 'myscriptinclude'
});
filter condition would be like below.
sys_id | is one of |javascript: new global.myscriptinclude().myFunctionName()

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2020 04:27 AM
you client script prototype should be like below.
var myscriptinclude = Class.create();
myscriptinclude.prototype = Object.extendsObject(AbstractAjaxProcessor, {
myFunctionName: function(){
// write script here
},
type: 'myscriptinclude'
});
filter condition would be like below.
sys_id | is one of |javascript: new global.myscriptinclude().myFunctionName()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2020 04:48 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2020 04:50 AM
Change the the script include accessible form to all application scopes .
eg: go to script include , open it , you will see accessible from field , set to all application scope.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2020 04:32 AM
Hi,
Replace your filter condition with this.
javascript: new global.getInc().getInc()
Your script include should be like this.
var getInc = Class.create();
getInc.prototype = Object.extendsObject(AbstractAjaxProcessor, {
getInc: function(){
var sysID=<your sys ID>
return sysID;
},
type: 'getInc'
});
Mark correct/helpful based on impact.
Thanks,
Dhananjay.