Look select box variable options are not showing in UI Policy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2022 05:56 AM
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?
- Labels:
-
Request Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2022 06:04 AM
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)
Regards,
Abhijit
ServiceNow MVP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2022 06:10 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2022 06:13 AM
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.
Regards,
Abhijit
ServiceNow MVP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2022 08:10 AM
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