How to debug Client Callable Script Include when we call it in Report?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2023 10:51 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-11-2023 01:37 AM
Since it's a script include you can just log it like you would any other server script if you add gs.info(); into it.
For example:
var something = something else;
gs.info("Script include X: " + something);
Then in check the logs to see what was logged.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-11-2023 02:45 AM
Tried but not getting any logs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-11-2023 02:56 AM - edited ‎04-11-2023 02:59 AM
How do you call the script include?
It would have to look a bit like this:
javascript:new IncludeName().functionName()
For example your filter could look like "sys id is javascript:new IncludeName().functionName()"
EDIT:
Also, are you using a scoped application?
Also, if my text shows &colon ; then that's some kind of formatter issue. It should be :
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-11-2023 03:27 AM
No, it is a global application.