Inherited Choice List values

whitewalker
Kilo Contributor

I have a table Computer with a field named OS. This field is a Choice (dropdown with none). I have added some values for this field.

Now i have another table that extends table Computer with all its fields. When i'm adding new values to field OS from Computer (parent table), this values are not displayed in child table.

I'm adding new value through API, so i'm inserting new values in table Choices (sys_choice). Do I have to insert each new value in each table (parent and child) ?

1 ACCEPTED SOLUTION

Chuck Tomasi
Tera Patron

Hi Nick,



If there are values on the parent table and you start adding values to the child, you'll need to ensure   the wanted values from the parent are included. Having child values would be the only reason the parent values are not showing up. Once there are child values detected, it won't automatically inherit. If the child list is completely blank, then it should default to the parent values.



For all intents and purposes, the fields are considered independent - think about task and incident. Task makes a nice template, but once I start modifying the choices on incident, I don't want further changes on task to interfere with my incident choices.



Customizing Choice Lists - ServiceNow Wiki


View solution in original post

7 REPLIES 7

Chuck Tomasi
Tera Patron

Hi Nick,



If there are values on the parent table and you start adding values to the child, you'll need to ensure   the wanted values from the parent are included. Having child values would be the only reason the parent values are not showing up. Once there are child values detected, it won't automatically inherit. If the child list is completely blank, then it should default to the parent values.



For all intents and purposes, the fields are considered independent - think about task and incident. Task makes a nice template, but once I start modifying the choices on incident, I don't want further changes on task to interfere with my incident choices.



Customizing Choice Lists - ServiceNow Wiki


As i understand, if I delete all values   from child table, child table's choice will take values from parent ? For my problem, it will be a good solution. I don't want to duplicate values, as I have the same choice list for both tables.


Correct. I just verified it on task/incident by removing all the incident choices for state and now I have only task choices .


Hi Chuck,

 

In my case i created some sub state for child and those are reflecting in parent. Sub state is parent field and i am creating some choices for child table. Parent having 4 child and i created it for one of them and it's reflecting in child(for which i created)  and parent as well.

 

Please suggest or clarify if you have idea of it?

 

Regards,

Mansha