Reference Qualifier not working

Joe Taylor
Giga Guru

Why isn't this reference qualifier not working?

 

javascript:'sys_id!=NULL^ORDERBYu_order'

2 ACCEPTED SOLUTIONS

Thanks to everyone for their suggestions.

 

I finally got this working.

I changed it back to a "Simple" Reference Qualier.

Then I added "ref_ac_order_by=u_order" in the Variable attribute field.

 

JoeTaylor_0-1755526207766.png

 

View solution in original post

Hi @Joe Taylor 

 

what you accepted as solution is exactly what I replied above:

 

https://www.servicenow.com/community/itsm-forum/reference-qualifier-not-working/m-p/3352395/highligh...

 

and 

 

https://www.servicenow.com/community/itsm-forum/reference-qualifier-not-working/m-p/3352375/highligh...

 

I'm really glad that it solved your issue, but now it'd be fair to accept my replies as solution, not your own... you basically did what I've been saying the whole time. :))

 

Thank you for considering to accept my solution. If not, then I'm happy you solved your issue but again it's not fair and actually against the Community's code of conduct. 

 

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


View solution in original post

11 REPLIES 11

GlideFather
Tera Patron

Hi @Joe Taylor 

 

you can remove the sorting and keep it as "javascript:'sys_id!=NULL". If your reference qualifier is so simple you can use the condition builder...

 

Please provide more details... What does it return? and what do you want to return it? :))

 

EDIT:

Note: javascript + colon (:) has transcript to javascript: 

it's a problem of this Community, not ServiceNow as such but be careful if copy pasting back to ServiceNow 

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


@Joe Taylor what's your ambition?

 

Your current ref qualifier could be either:

GlideFather_0-1755186689806.png

 

or

 

GlideFather_1-1755186699264.png

 

 

But records whose sys ID is NULL means they don't exist so I don't think your condition could be EVER valid... it will always evaluate all the records in the referencing table.

 

Please review the condition or explain your requirement and I'll help you build it better, the current condition doesn't make any sense

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


Here's my table.

It only has 2 custom columns.

I just want to sort by Order in my reference qualifier.  That's it.  I've used this before without any issues:

 

javascript: 'ORDERBYu_order';

JoeTaylor_0-1755187495757.png