How to add a custom field to large number of forms

MMGF
Tera Contributor

Is there a way to take a custom attribute on the cmdb_ci table and add it to many table forms (servers, net gear, etc.) easily? The issue is when we do a release upgrade the forms get overwritten and have to be re-done and it takes a long time. 

 

4 REPLIES 4

Runjay Patel
Giga Sage

Hi @MMGF ,

 

I would not suggest you create field on base table if you need it only for hardware devices then create on hardware table.

 

In upgrade your form should not override, you have to design form and list , capture in update set and migrate it to prod.

 

Hope this will help.

Ankur Bawiskar
Tera Patron

@MMGF 

if you wish that field should be available on all child tables then create field on base table

if it has to be on specific tables then create field on that particular table

If my response helped please mark it correct and close the thread so that it benefits future readers.

MarekMeres
Giga Contributor

Create a custom view so it does not get overwritten with upgrade. You can also force it with View Rules. I have no good way to add a field to multiple *differently looking* forms, although I wrote some script to copy form view from one table to another, provided they share the same set of attributes (let me know if you need it, I need to search for it).

 

Best regards

AttilaVarga
Mega Sage

The forms are not necessarily overwritten after the upgrade, unless you accept the remote change.

But I agree with the previous comment. If you have a fairly complex, but custom solution, it's better to handle it in custom artifact, instead of modifying the OOTB one.