Using script include while constructing query in URL(from arguments ) in navigation link
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2017 05:47 AM
Hello All ,
We had a requirement to show all open incidents which are tagged to the logged in user. The entitlement is done on the user table.
Can we use script include while constructing URL (from arguments) along with fixed query to show the incidents returned by script include .
EG :
1. incident_list.do?sysparm_fixed_query=caller_idDYNAMIC90d1921e5f510100a9ad2572f2b477fe^ORopened_byDYNAMIC90d1921e5f510100a9ad2572f2b477fe^active=true
Including script include :
2. incident_list.do?sysparm_fixed_query=caller_idDYNAMIC90d1921e5f510100a9ad2572f2b477fe^ORopened_byDYNAMIC90d1921e5f510100a9ad2572f2b477fe^active=true&javascript:new INC_Selection().getincident().
Only the first query is working and the second is not working .
Any suggestion on how we can achieve it .
Thanks ,
Adarsh S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2017 05:30 AM
Thank you. I added it to my URL:
incident_list.do?sysparm_fixed_query=sys_idINjavascript:matchParentIncToChildInc();
and it worked.
I had tried returning building the list of Sys_ids in the script include, but that did not work.
return 'sys_idIN' + gp;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2017 05:24 AM
Hi Sam hope you got this issue sorted. Could you mark my answer as correct please so it gets removed from unanswered list. Cheers - Regina