- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2015 11:31 AM
I am updating a reference qualifier I have that currently references the function of a script include, getPosition(). I want to add an encoded string query: u_position!=Not in use^u_position!=Default for Conversion^EQ. According to the Wiki: Encoded Query Strings - ServiceNow Wiki the proper way to do this is:
javascript:'u_position!=Not in use^u_position!=Default for Conversion^EQ' + getPosition()
but currently only the encoded string query is working, the function is not longer working. Is there something wrong with my coding or syntax?
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2015 11:39 AM
Hi Lindsey,
The best way to copy query is construct the filter form the list and then right click on the breadcrumb->Copy filter
Then javascript: copied filter
Please see the below screenshot attached for reference.
Please check section 3.1 for more info.
http://wiki.servicenow.com/index.php?title=Using_Filters_and_Breadcrumbs
I hope this answers your question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2015 11:39 AM
Hi Lindsey,
The best way to copy query is construct the filter form the list and then right click on the breadcrumb->Copy filter
Then javascript: copied filter
Please see the below screenshot attached for reference.
Please check section 3.1 for more info.
http://wiki.servicenow.com/index.php?title=Using_Filters_and_Breadcrumbs
I hope this answers your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2015 12:09 PM
Yes, thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2015 11:43 AM
I think you need to remove the EQ:
javascript:'u_position!=Not in use^u_position!=Default for Conversion^' + getPosition()
It is not necessary.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2015 12:10 PM
Thank you Mike!