How to get the display value of an encoded query?

MG Casey
Mega Sage

Is there an easy way to convert an encoded query such as:

active=true^caller_id!=3643044b6ff851406b7283bc5d3ee42b^ORcaller_id=NULL

to make it look how it looks at the top of a ServiceNow list?

find_real_file.png

All > Active = true > Caller != Data Center Operations

For custom applications, allowing users to see a more readable version of their current filters would help tremendously. I'm just curious how ServiceNow does it for their own lists.

1 ACCEPTED SOLUTION

Chuck Tomasi
Tera Patron

When using a condition field, you can use the dictionary attribute readable=true, that way if someone has it displayed on a list or in a read-only field, it will still be readable.



For example: Active = true .and. Caller = Fred Luddy .or. Caller is empty



http://wiki.servicenow.com/index.php?title=Dictionary_Attributes#gsc.tab=0


View solution in original post

9 REPLIES 9

Chuck Tomasi
Tera Patron

When using a condition field, you can use the dictionary attribute readable=true, that way if someone has it displayed on a list or in a read-only field, it will still be readable.



For example: Active = true .and. Caller = Fred Luddy .or. Caller is empty



http://wiki.servicenow.com/index.php?title=Dictionary_Attributes#gsc.tab=0


Perfect!


Nailed it, thank you

Others of my favorites on condition fields include:

  • show_condition_count=true - display the number of records that match the condition
  • no_truncate=true - show the entire contents of the field in a list instead of the first 30 and then ...