Automatically update the form layout of child tables when the parent table form changes?

MHager
Tera Contributor

Is there a way to automatically update the form layout of child tables when the parent table form changes? I have been working on a project that has added many tables to the CMDB hierarchy, and I'm looking for a way to ensure that child tables will display the changes made to the parent table form.

 

I know that if a form is not specified for a table it will automatically inherit the form layout of the parent table and creates a new entry in the sys_ui_form and sys_ui_section tables, but once that new entry is created each individual form has to either be deleted from those tables so that the next record opened will inherit the parent layout again, or each individual form needs to be modified to update with the latest changes.

 

Especially in cases where a project is in progress and stakeholders ask for form changes across a group of tables it can be quite time consuming to do all of it manually. 

3 REPLIES 3

SanjivMeher
Kilo Patron
Kilo Patron

I dont think that is possible. Every child table will have its own default view.

The only possible way I could think of is creating a new view on the parent table and create view rules on child tables to default that view for all the child tables.


Please mark this response as correct or helpful if it assisted you with your question.

Sumanth16
Kilo Patron

Hi @MHager ,

 

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.

 

If I could help you with your Query then, please hit the Thumb Icon and mark it as Correct !!

 

Thanks & Regards,

Sumanth Meda

Neil P
Tera Contributor

When you're going to blatantly steal answers from @Chuck Tomasi, you could at LEAST link to the original post.

 

https://www.servicenow.com/community/developer-forum/add-form-field-to-children-classes/m-p/2194488