Add/remove related list a view with a script

Victor Monteale
Tera Guru

Hi everyone

 

     I have created a related list based on a relationship and now I need to add it to all sub classes of cmdb_ci. Is it possible to add/remove a related list with a script instead of doing it manually for every view in a class.

 

Regards

1 REPLY 1

AnkaRaoB
Tera Expert

Hi @Victor Monteale ,

 

Related lists are stored per table and per view and are not automatically inherited by CMDB subclasses. While it is technically possible to script updates to sys_ui_related_list tables, this is unsupported and risky. The recommended approach is to add the related list to the cmdb_ci base table (Default view) so subclasses inherit it, or manage views consistently.