I need to create a reference qualifier to remove null result

Cherly
Tera Contributor

I need to create a reference qualifier to  block item that  the user(u_user) is  empty.  I am very know i this and can't seem to get it to worki. 

1 ACCEPTED SOLUTION

Hitoshi Ozawa
Giga Sage
Giga Sage

Hi Cherly,

In the "Type Specification" tab, set "Use reference qualifier" as "Advanced".

In the "Reference qualifier", set as below to not list records where u_user is empty.

javascript: "u_userISNOTEMPTY";

find_real_file.png

View solution in original post

3 REPLIES 3

johnfeist
Mega Sage
Mega Sage

Hi Cherly,

If you are looking to set up a reference qualifier on the table, just use simple and then select User | Is Not Empty.  The easiest way to convert that into something for a script is to invoke it on the list view.  From there, right click on the rightmost end of the filter.  Click on copy query.  You can then go to your scripting and make that an encoded query:

var myTable = new GlideRecord("<table name>");
myTable.addEncodedQuery("u_userISNOTEMPTY");
// add anything else you need to query the record

Hope that helps.

:{)

Helpful and Correct tags are appreciated and help others to find information faster

Hope that helps.

:{)

Helpful and Correct tags are appreciated and help others to find information faster

Cherly
Tera Contributor

it on a lookup selectbox since i dont have the filter option.

Hitoshi Ozawa
Giga Sage
Giga Sage

Hi Cherly,

In the "Type Specification" tab, set "Use reference qualifier" as "Advanced".

In the "Reference qualifier", set as below to not list records where u_user is empty.

javascript: "u_userISNOTEMPTY";

find_real_file.png