Catalog conditions in Catalog UI Policies

sach1
Tera Guru

Hi All,

I have written a Catalog UI policy on a Variable Set. I have this variable set in one order guide (starter request) and other items which are related to this order guides.

In UI policy under Catalog conditions I observed that "Catalog Item" field is available. So I utilized it as per the below snapshot.

UI Policy.JPG

In the above snapshot starter request is the name of the Order Guide. I was expecting that this policy will not work for Starter Request but it is not happening.

I want the variables to be read only on all other Items except the Starter Request order guide.

Am I doing something wrong ?

1 ACCEPTED SOLUTION

Thanks Kalai,



I used g_form.getParameter("sysparm_id") to get the sys_id of catalog item.



Order guides don't have this value but catalog items return sys_id. Using this logic I wrote a client script to make the variables read only.


View solution in original post

14 REPLIES 14

Govind Kumar S1
Kilo Guru

Hi Sachin,



I got solution for problem, what you can do . instead of creating catalog ui policy on Variable set. Please create Catalog ui policies separately for Order guide ( variable set variable's are also present on form..so under ui Actions you can see variables of variable set too ) and catalog item/ maintain item.



I have tried this , this is working fine.



Please try it and let me know .



Thanks & Regards


Govind Kumar Sharma


Govind I am using cascade variables to pass the values from Order Guide to Catalog Item.


What I understood from your solution is Create a catalog ui policy on order guide. This means that I will have to create separate ui policies for each catalog item right ?


yes right.


Govind...I know this solution will work but I will have to create a UI policy for each Item. Going further if new catalog item is to be attached to the order guide then I will have to create a new UI policy.



I was looking for a solution which can avoid this rework.


Hi Sachin,



have you tried this. Is your requirement fulfilled?



Thanks & Regards


Govind Kumar Sharma