Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

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 ACCEPTED SOLUTION

AnkaRaoB
Giga Guru

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.

 

 

View solution in original post

1 REPLY 1

AnkaRaoB
Giga Guru

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.