Script include not being called from module filter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-06-2023 01:06 PM - edited ‎04-06-2023 01:09 PM
Hey guys, I have a module where I'm calling a script include (client callable is checked), however it doesn't seem like the script is being called. The module is in a scoped application while the script include is global. I know the script include works because I have tested it in Background scripts. I've tried so many different ways of calling the script include, but nothing seems to be working.
Here is the module filter:
And here is the script include. The gs.info on line 33 isn't even logging, so it seems like the script include is being called at all.
Any help is appreciate. Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-06-2023 01:30 PM
Hi,
Are the script include and function names the same?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-06-2023 01:34 PM
Yes they are
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-06-2023 01:55 PM
Got it. When you test this in background scripts, do you get a single string back on
return controlObjectives;
or does it/can it return multiple sys_ids?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-06-2023 02:04 PM
It's returned as an array of strings.
In this screenshot I logged controlObjectives, and then I logged typeof controlObjectives[0]