Can't call Script Include in Filter for List - Simple in App Engine Studio Workspace Editor

Mark Endsley
Tera Guru

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.

MarkEndsley_0-1725636797886.png

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. 

MarkEndsley_1-1725636936766.pngMarkEndsley_2-1725636959786.png

 

 

1 ACCEPTED SOLUTION

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. 

View solution in original post

5 REPLIES 5

Omkar Kumbhar
Mega Sage

Hello @Mark Endsley ,

Can you please try using new infront of the script include name

javascript:new ScriptIncludeName().methodName();

 

Thank you,

Omkar

If I was able to help you with your case, please click the Thumb Icon and mark as Correct.

javascript:getParentDept() and javascript:getParentDept(); are both doing the same thing. After I push apply and reopen the filter it is gone.

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.

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.