Can we add a common view to parent and child tables?

veena_kvkk88
Mega Guru

Hello all!!

Hope you are having a great Monday morning!

So, I have a question about views. I have a parent table, say Task, and it's child tables, Incident, Problem etc. Is there a way for me to create a view for Task, that also applies to all child tables? They basically consist of only the common fields from the parent table.

1 ACCEPTED SOLUTION

Hi Veena,



If there are no views on the child table, it has no choice, but to inherit from the parent - it has nothing else to go on. Once you say "I've got a better way, here's a view specific to the form", then the views from the parent are ignored. Consider the CMDB and it's complex parent-child table structure. It would be insane to try and remember where the view came from, who is doing what, which fields are available, etc. It's already challenging enough to keep the fields straight.



Same concept as choice lists. Once you start making changes, it ignores the parent's settings.



Let me know if I have answered your question. If so, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.



If you are viewing this from the community inbox you will not see the correct answer button.   If so, please review How to Mark Answers Correct From Inbox View.



Thank you


View solution in original post

5 REPLIES 5

Chuck Tomasi
Tera Patron

Hi Veena,



If you are referring to inheriting views like client scripts, fields, etc. from base tables, then the answer is "only for the default view". For example , if your base table has a default list view with fields A, B, C, and D on it and you extended this to a new table, it would inherit the default view, but not the other views.



View Management - ServiceNow Wiki


Hi Chuck, thanks for the prompt reply! Let me explain it better. I have a base table that has fields A, B, C, D and a few other tables extending from it with additional fields. I want to create a form view (not list view) for all the base and extending tables, that display only fields A, B, C, D. So, when I open any of the child tables, the first view I get consist only of the fields A, B, C, D.


Hi Veena,



Yes, the same applies to forms as lists.. Extended tables inherit the default view (no named view) of the parent. I do this all the time when extending task.


Hi Chuck,



I was playing around with my personal instance to understand the views and this is what I noticed.



When a parent table is created with views, followed my child table creation, all the views are made available to the child tables (including the named views, though they are only visible when we configure form layout and not on the list of views). But not when child is created, followed by creation of view for parent.



All the views created for the parent, after the child is created are not available. So, it's like when child is created, views are inherited along with everything else, but once it's created, it is not able to inherit any more views.



Sorry if I'm blabbering but, hope I got my point across. And if this is exactly what you said, then I feel stupid to repeat everything