- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2023 07:27 AM - edited 11-20-2023 07:28 AM
I have a 'Data Table from Instance Definition' widget on a portal page. It links to a table and displays records that match the filter. I would like to call a script include from the "Filter" field, to return a list of sys_ids for the widget to display.
I have done this before on record producers and catalog item variables via this method in the reference qualifier:
javascript:scriptIncludeName.functionName(variable_name_goes_here)
This doesn't seem to work in the portal widget however. It displays the same records whether I call the script include or not. I have thoroughly verified that the code in the script include is correct. This implies that javascript reference qualifiers are not allowed in the filter field. Does anyone have any info on this / work around?
This is what I am using in the filter field:
javascript: ProjectOverview.getCases(gs.getUserID())
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2023 07:38 AM - edited 11-20-2023 07:39 AM
new ProjectOverview().getCases(gs.getUserID())
If you're calling a Script Include, try the above syntax after your 'javascript: '
Note that your function will need to return a list of comma-separated sys_ids.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2023 07:37 AM - edited 11-20-2023 07:38 AM
Hi @JJG_SNOW
Could your try:
javascript: ProjectOverview().getCases(gs.getUserID())
I know this works in the simple list widget, so I would be surprised if it doesn't work here.
Just to make sure, you have verified your script include does work (in a backend filter for example)?
Could you share your script include, so I could reproduce?
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2023 07:40 AM - edited 11-20-2023 07:43 AM
Same result with what you suggested
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2023 07:38 AM - edited 11-20-2023 07:39 AM
new ProjectOverview().getCases(gs.getUserID())
If you're calling a Script Include, try the above syntax after your 'javascript: '
Note that your function will need to return a list of comma-separated sys_ids.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2023 07:47 AM
@JJG_SNOW the difference between the above and yours in the 'new' before invoking the Script Include, and the addition of the '()' after invoking the Script Include name and before calling the method for getting cases.