- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2024 08:36 AM
We've been given a requirement to have a report that shows the user only tickets associated with their Parent Department. We've had this many times before, and we handle by saying Department.parent = javascript:getParentDept() . This is a script include we created long ago.
This is an image of us using it in a module that displays a list.
When I try to do this in Workspace Editor under App Engine Studio (The UI that is used when you edit a Workspace from AES), it simply erases it after I've saved the filter.
Does anyone know how we are supposed to call script includes as filters in this editor?
This is where I'm trying to insert it.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2024 10:24 AM
I figured it out. I was trying to run the Javascript with the reference field selected, instead of dot walking to the sys_id field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2024 09:32 AM
Hello @Mark Endsley ,
Can you please try using new infront of the script include name
javascript:new ScriptIncludeName().methodName();
Thank you,
Omkar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2024 12:09 PM
javascript:getParentDept() and javascript:getParentDept(); are both doing the same thing. After I push apply and reopen the filter it is gone.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2024 12:14 PM
I don't believe we actually have a script include here, I'm not sure what this is calling from but I know it works in the module. I will try making a new script include to cover this next.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2024 07:16 AM
I've tried creating a script include instead of a business rule and formatting it as
javascript:new getDept().getParentDept();
But I am getting the same result. The filter will not save.
