Look select box variable options are not showing in UI Policy

YRK
Tera Contributor

Hi all,

I have a catalog item with Lookup Selectbox variable called Change Type referencing to sys_choice table and with a help of reference qualifier the variable is showing only few choices in the form. 

The issue is: if I would like to create a Catalog UI Policy on the Record producer for that variable, the "Catalog Conditions" are showing for Change Type variable thousands of records from sys_choice table and do not see the records related to it.

On Lookup Select box variable I am using a dynamic reference qualifier like below.

name=sys_choice^inactive=false^element=Oracle ERP Maintenance Request - Change Type^dependent_value="+current.variables.business_function

Any ideas how to apply condition based on Look select box variable in UI policy?

 

8 REPLIES 8

Abhijit4
Mega Sage

Looks like it is problem with 'current.variables.business_function' as there won't be any values in "business function" variable when you try this in UI policy. 

You can debug further by applying remaining filter (name=sys_choice^inactive=false^element=Oracle ERP Maintenance Request - Change Type)

 

By marking my response as correct or helpful, you contribute to helping future readers with similar issues.
Regards,
Abhijit
ServiceNow MVP

YRK
Tera Contributor

Hi Abhijit,

Thank you for your reply.

in the catalog item, Change type variable depends on Business function variable. the change type choice set is populated based on the Business function value selected.

Basically it has nothing until user selects.

Thanks,

Rama

Yep, it make sense. However, when you are trying this in UI policy, the Business function variable doesn't exist so your reference qualifier is failing.

By marking my response as correct or helpful, you contribute to helping future readers with similar issues.
Regards,
Abhijit
ServiceNow MVP

YRK
Tera Contributor

Hi Abhijit,

yes, if the reference qualifier is not dynamic we can achieve this by removed javascript in the refernce qualifier.

 

is there any help on this to achieve this?

Thanks,

Ram