variables being hidden, can't find why

Bidduam
Tera Guru

So I have a couple of variables on a catalog item, that are hidden when the item is opened in the portal.

Their direct settings have then as NOT hidden and once some other fields have been filled the fields show up.

 

I'm sure that it is being hidden (and shown) because of a UI Policy in the catalog item, however I cannot at all find it.

Is there a way to see what UI Policies are running/activated at any particular time so I can track down where to 'fix' my issue?

 

3 REPLIES 3

myabrownn
Tera Contributor
I've encountered this issue before, and it can be quite frustrating to track down the culprit UI Policy. Here's what I've found helpful in such situations:
  1. Utilize the Script Debugger: The Script Debugger is a valuable tool for examining the execution of UI Policies. Set breakpoints at strategic points in the code to pinpoint the exact UI Policy that's manipulating the visibility of your fields.

  2. Examine the UI Policy History: This feature provides a chronological record of UI Policy executions, revealing which policies have been active and what actions they've performed. This can help you narrow down your search for the offending UI Policy.

  3. Check for UI Policies referencing the variables: Search for the variable names in the UI Policy editor to identify any policies that might be affecting their visibility.

  4. Perform a global search for UI Policies related to the catalog item: This broader search can uncover UI Policies that might be indirectly influencing the visibility of your fields.

In my experience, these methods have proven effective in pinpointing the source of UI Policy-related issues. Remember, patience and persistence are key.

Jaspal Singh
Mega Patron
Mega Patron

Hi,

Ideal option is to open the catalog item by navigating to Service catalog >> Catalog Definitions >> Maintain items

Filter by catalog item name, open the record, scroll to the bottom and check for UI Policies and client scripts.

In case you don;t find anything, check if there are any Variable sets and then open the variable set and check for UI policies and client scripts.

Danish Bhairag2
Tera Sage
Tera Sage

Hi @Bidduam ,

 

The easiest way to find them would be to check the variables under UI policy action tab by their backend name. That will tell u whether the variable which u r looking for is utilised under which UI policy. Then u can open the UI policy n make necessary changes.

 

In case of client script again u can filter out using script contains the backend name of the variable.it will give u the list of scripts where that variables are being used if they are. Accordingly make necessary changes

 

Thanks,

Danish