how to copy UI Policy from one catalog item to another

sandaru
Giga Contributor

Hi,

I'm in a need to copping UI policy from one catalog item to another. Is there any way that can do this ?

Thank you,

/Sandaru

1 ACCEPTED SOLUTION

Ajai S Nair
Giga Guru

Hi Pushpitha,



Yes you can do that.


Open the UI policy and select the new catalog item name in the Catalog item Field. Then right click on the top and select Insert and Stay. Then Ui policy will be copied to the new item But the Ui policy actions wont be copied here so This is helpful only when you are copying a Ui policy with some Run scripts in it.


But if you right click on the top and select Insert with Actions then Ui policy along with actions will be copied.


View solution in original post

4 REPLIES 4

Ajai S Nair
Giga Guru

Hi Pushpitha,



Yes you can do that.


Open the UI policy and select the new catalog item name in the Catalog item Field. Then right click on the top and select Insert and Stay. Then Ui policy will be copied to the new item But the Ui policy actions wont be copied here so This is helpful only when you are copying a Ui policy with some Run scripts in it.


But if you right click on the top and select Insert with Actions then Ui policy along with actions will be copied.


Hi Nair,



It seems we have a bug in Helsinki. I can copy the UI policies and Actions as you mentioned. But its not working as expected. I have same set of variables in all catalog items that i apply this UI policy. Also its bugs my other UI policies too



Thanks for the reply


It may be because the variables in the other item is having another sys_id. Open the UI policy action and check whether variable name is populating or sys_id.If its sys_id then replace it with the corresponding variables on the form.


Copying Ui policy is useful only when you have already moved the variables from an item to another and trying to use the UI policy for that variables. It won't check with the Variable name instead it compares with the sys_id of the variable.