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 10:44 PM
If you are seeing thousands of record while selecting Change Type field then it should also have record that you are looking for, can you verify properly if it really shows or not?
If it not showing then as workaround, you can try removing reference qualifier filter from the change tpye field then select required options in UI policy then revert back the filter and check if UI policy condition still keeps those condition as it is. That should resolve your issue.
Let me know if you have any further queries.
Please mark this as Correct or Helpful if it helps.
Regards,
Abhijit
Community Rising Star 2022
Regards,
Abhijit
ServiceNow MVP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2022 11:39 PM
Hello YRK,
You are using Lookup select box type variable (i.e reference type) to show the Contract subtype field values from sys_choice table on the catalog form. But when you configure the catalog UI Policy it will show all the values available for this variable on the catalog item.
In your reference qualifier you are using current.variables.u_type_of_contract and when setting the UI Policy condition reference qualifier won't run or even if it run current.variables.u_type_of_contract is not have any value and you will not see the expected values that you are looking to see.
In catalog UI policy condition field you will see all the values that are applicable or available for that field. Could you please share what values you want to see in the condition field for contract subtype field in UI Policy.
Hence I would suggest you to use Select box type for your variable.
Please refer this similar raised by other user.
Please mark this as helpful/correct, if it answer your question.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2022 05:40 AM
Hi Mahendra,
How can we change choice list of a variable dynamically if it's type is "select box". my requirement is to populate values of "change type" based on "Business function".
If I made it select box it is showing all the options.
Please help me if there is way to populate to (choice list) values of variable which depends on another variable (list of choices) .
you can assume like Category and subCategory in Incident table.
Thanks,
Rama
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2022 09:55 AM
Hi Mahendra,
In our requirement, I need to establish dependency between "Change type" and "Business Function" variables I could not find a way to achieve this without using "lookup select box" type.
So, if change type of variable to "Select box" the dependency between the variables will be broken.
Thanks,
Rama