Need help with Reference qualifier on Catalog Item Variable

GaryJHayes
Tera Guru

find_real_file.png

Hi,

I am trying to set a Lookup select box to work with a dependant field.

The dependant field is called current.variables.request_source. (Possible values: internal/external)

This does a direct lookup from the Choices list of the backend table

The reference qualifier I am using is:

javascript: "name=u_XXX_access^inactive=false^element=u_work_type^dependent_value=" + current.variables.request_source + "^EQ"

This works correctly and exactly as expected in the Service Portal but in the Platform UI Service Catalog the menu is always empty

As a test I tried replacing the variable with a fixed string like this:

javascript: "name=u_XXX_access^inactive=false^element=u_work_type^dependent_value=" + 'internal' + "^EQ"

 Then it work in both Service Portal and Platform UI Service Catalog (but obviously is not dependant)

Anyone have any suggestions why this qualifier is not working in the Platform UI Service Catalog?

1 ACCEPTED SOLUTION

GaryJHayes
Tera Guru

OK, so I figured out the answer myself and here are the details for anyone else who has this problem

While this technique works well of the Catalog Item when viewed from the Service Portal it needs to have additional configuration to make it work properly when accessing the Catalog Item from the Platform UI Service Catalog

On the Default Value tab(!) there is a Variable Attributes field and this needs:

ref_qual_elements=<variable used to filter>

In this instance:

ref_qual_elements=request_source 

Which matches the "current.variables.request_source" specified in the 'Reference qual'

With this in place the filters work in the Request Item in both the Service Portal and Platform UI Service Catalog

View solution in original post

11 REPLIES 11

Zmud1
Tera Contributor

Jesus Christ i frickin'g love you. I was sitting on this for 3 days trying to figure.

Thanks for the love šŸ˜Š