Add form field to children classes

Henrik Jutterst
Tera Guru

This is something I've been looking into for a while but can't find any info about it.

In our cmdb_ci table I have added a filed called CIID (numeric +1 counter for every CI that is created). I added this filed in the top level class so that I can have a CIID for all the children classes of cmdb_ci. What I'm now looking for is a way to have this filed on all the classifications in Configuration > CI Class Manager under Configuration Item.

CI-Class-Manager.PNG

I was hoping for a way to have this UI filed in all child classifications automatically (inherited) since the CIID filed is found in the cmdb_ci table but I haven't found out how to to so yet...

Is there a way for this or do I have to add this filed manually to all UI classifications forms under Configuration Item?

1 ACCEPTED SOLUTION

Hi Henrik,



The short answer is 'no', the field is not automatically applied to the form. While technically, we COULD add a field to a form, this may not be what you want as it would rarely ever be in the right location (and on all views!) Having done that automatically would still require you to go and modify the form with Configure Form Layout or Configure Form Design.


View solution in original post

7 REPLIES 7

Chuck Tomasi
Tera Patron

If you add the field to cmdb_ci, it is inherited to all child classes automatically. You can verify this by looking at the table definition (System Definition> Tables) and finding the record for a child class like Hardware (cmdb_ci_hardware) and observing that the field is present in the list of columns. Adding the Table column to the list will show the source (where it was inherited from.)


Hi Chuck and thanks for your comment!



I may have been a bit unclear, but I can see the filed in the database (just like you say I can). However if I'd like to add the form filed to a classification e.g. Hardware I was hoping that that UI filed change in hardware would also be done in child classifications to Hardware so that I don't have to manually add that filed to all Hardware children classes.



As you can see in screenshot the CIID filed is not to be found in the left side list.


CI-Class-Manager-No-CI.PNG


CI-Class-Manager-No-CI-02.PNG



Kind Regards


Hi Henrik,



The short answer is 'no', the field is not automatically applied to the form. While technically, we COULD add a field to a form, this may not be what you want as it would rarely ever be in the right location (and on all views!) Having done that automatically would still require you to go and modify the form with Configure Form Layout or Configure Form Design.


Thanks then! (I'm quite new to ServiceNow of what it can and can't do)


That way I don't have to google harder to find something that can't be found 🙂