How can i design a form for parent class and same to be replicate to all child class

Suhail2297
Tera Contributor

How can i design a form for parent class and same to be replicate to all child class?

Please guide

1 ACCEPTED SOLUTION

Hi @Suhail2297 ,

 

If you are trying to show the same form on child table (incident), It should extend the parent table (task).

Here the task table fields will be present in the incident table for reuse.

AlluGopal1_0-1738904448319.png

 

I hope this helps you to understand.

 

Thanks and Regards.

Allu Gopal.

View solution in original post

11 REPLIES 11

Ashok Sasidhara
Tera Sage
Tera Sage

Most of the parent classes will have many child classes under it. It is recommended to make changes only for relevant CI classes which the organization needs to maintain in the CMDB to support their business objectives. So you should gather the list of child classes which needs to be maintained. Then make the changes on those forms individually. Many of the child classes will have additional attributes apart from those inherited from the parent class. So you have to consider the need of bringing those also to the form view.

Stephen Anderso
Tera Expert

I am also looking for a similar solution as an example the Server Class (cmdb_ci_server) would have a section named Contacts & Support with Owner and group fields configured. All child classes like Linux servers or Windows servers would then have that section and relevant fields available on the forms by default. Currently, I have to replicate that section on each form.