How to autopopulate the value of "Owned By" field in Network Gear {CI Class] form?

Aditya Sinha
Tera Contributor

I have to auto-populate the field of Owned By in the form of Network Gear {CI Class} to a particular user whenever a new network gear CI class item is created on the network gear table.

4 REPLIES 4

Vismit Ambre
Giga Guru

Hi Aditya,

 

When you say you need to auto-populate the owned by, I am assuming the value with which you need to get the owned by auto-populated. 

With the above assumption, here are 2 ways in which you can achieve it:

 

1. If your CI is coming from any discovery, you can simply add a field on the transform and put the logic there to auto-populate the owned by field

2. If there is a possibility that the CI can come from any other source, you can simply put a before insert BR and have the logic for auto-populate written there.

 

Please mark the solution accepted or helpful based on the resolution.

 

Regards,

Vismit

Hi Amit. There is a group whose manager is being autopopulated as the CI owner in the Network Gear form. I have a catalog item which has a CI owner field and i want to autopoulate it with the same group's manager via an onload script. Can you help me with it?

Divya Rajasekar
Tera Contributor

Hi @Aditya Sinha ,

 

var a= g_form.getValue("group");//group name or sysid

alert(a.manager);//check what its returning

var b=a.manager;

g_form.setValue('ci owner',b);

 

Please mark as helpful if this helped

Hi Divya! The group is actually not mentioned on the form. It is a custom made group whose manager needs to be populated in the ci owner field.