How to "Refresh" Reference Qualifier?

G24
Kilo Sage

We want to show only those "Reporting Categories" that apply to the current Configuration Item...

 

I was all proud of myself because I created an "Advanced" "Reference Qualifier" on my Reporting Category field that shows only the appropriate values based on the Incident record CI...

 

But it doesn't work if the user CHANGES the CI and then immediately tries to select a Reporting Category, because the Reference Qualifier is Server Side code, and I guess runs only once when the form is loaded.

 

1)  Is there any way to magically "refresh" the list of options in my Reporting Category, BASED ON THE REFERENCE QUALIFIER, when the CI field is changed client side?

 

2)  If not, did I just waste my time implementing a reference qualifier?  What is the correct solution?  (Oh, and by the way, the CIs are connected to the Reporting Categories via a Many to Many table.)  Thanks!

 

RefQual.png

 

1 ACCEPTED SOLUTION

G24
Kilo Sage

Thank you, @Sonam Tiwari 

 

So the answer is this...  If you want your Server-Side "Advanced Reference Qualifier" for field 2 to be refreshed when there is a change by the user on the client side, on the fly, to field 1, then you need to include, in the Attributes for field 2, the  attribute "ref_qual_elements=field_1_name".

 

Example Screenshot showing Dictionary Record for field 1:

RefQual.png

 

Documentation:

https://docs.servicenow.com/bundle/utah-application-development/page/administer/reference-pages/conc... 

 

Documentation Screenshot:

Docs.png

 

 

View solution in original post

2 REPLIES 2

G24
Kilo Sage

Thank you, @Sonam Tiwari 

 

So the answer is this...  If you want your Server-Side "Advanced Reference Qualifier" for field 2 to be refreshed when there is a change by the user on the client side, on the fly, to field 1, then you need to include, in the Attributes for field 2, the  attribute "ref_qual_elements=field_1_name".

 

Example Screenshot showing Dictionary Record for field 1:

RefQual.png

 

Documentation:

https://docs.servicenow.com/bundle/utah-application-development/page/administer/reference-pages/conc... 

 

Documentation Screenshot:

Docs.png