dot walk in a reference qualifier

chazz1
Mega Contributor

is it possible to dot walk in a reference qualifier?

something like:
"u_parent.u_nameSTARTSWITHincident"

this particular syntax does not appear to work, is this sort of thing possible? or do i have some syntax wrong?

3 REPLIES 3

Michael Kaufman
Giga Guru

I did a quick search and there is no dot-walking in a reference qualifier in an OOB system. Not sure if possible. You can use javascript instead:

http://wiki.servicenow.com/index.php?title=Reference_Qualifiers#Using_Javascript_for_Flexibility

You might not even have to create a Script Includes function. You might be able to do dot-walking like this. Try this out:

javascript:current.addQuery('u_parent.u_name', 'STARTWITH', 'incident');

Mike


javascript:current.addQuery('u_parent.u_name', 'STARTWITH', 'incident');

no dice; it essentially does nothing. no filtering at all.

part of my problem is that i am trying to build a complex qualifier. essentially one of three conditions need to be true.
(A and B) or (C and D) or (F and G or H)

I dont see anyway to group things like this in a refernce qualifier, and i am not sure how a global javascript function (which is just a function to build a reference qualifier string) would help. it may just be a shortcomming of reference qualifiers.


CapaJC
ServiceNow Employee
ServiceNow Employee

Hmm, I just tested the following as a reference qualifier on the task.company field:
parent.nameSTARTSWITHacer

I then gave two company records a parent of "Acer", and those two were the only ones that showed up for that reference field on the Incident form. Both in the autocomplete and using the mag glass.