The CreatorCon Call for Content is officially open! Get started here.

How to auto populate choice field from other table without creating duplicate choices

Spandana P
Tera Contributor

I have a custom CI class line ( u_cmdb_ci_line) extending cmdb_ci and a custom model table line model extending cmdb_model table (u_line_model).

on the CI record, I have a field model which refers to line model and from this field few fields on CI records gets populated from model fields. 

we also have a choice field (base/option) on CI with choices base, option. There is a same field on model and we need to populate CI base/option with the value from model base/option field. The problem here is , when a model is selected on CI, this base/option field on CI is creating a new choice instead of inheriting value from model

find_real_file.png

ui policy that populates other fields:

find_real_file.png

 

Please let me know how to auto populate this choice field from model table without creating duplicate choices

1 ACCEPTED SOLUTION

Anil Lande
Kilo Patron

Hi,

You can open dictionary on your CI table where you want to use same list of Base Options (inherit from Model).

find_real_file.png 

 

This way you can inherit other table choice and no need to create duplicate choices. If you add new choice on Model it will available in CI table as well.

 

Thanks,

Anil Lande

 

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

View solution in original post

2 REPLIES 2

Anil Lande
Kilo Patron

Hi,

You can open dictionary on your CI table where you want to use same list of Base Options (inherit from Model).

find_real_file.png 

 

This way you can inherit other table choice and no need to create duplicate choices. If you add new choice on Model it will available in CI table as well.

 

Thanks,

Anil Lande

 

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

Thank you Anil, it helped.