Display field for a reference field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2024 05:43 AM
Hi,
On the Change Request form, we have a reference field called Configuration Item and is referencing the cmdb_ci table.
When we search for the CIs by clicking the magnifying glass on this field, it will show CI names from all the child tables of the cmdb_ci table.
My requirement is to show a different field for certain child classes. As an example, for the CIs in the Windows Server class (cmdb_ci_win_server) I would like to show a custom field called Parent which is created only on the Windows Server class. I have already set Display to true for the Parent field on the Windows Server table but it still shows Name.
Can you please tell me if this is possible? If so, how I can achieve it or other alternatives?
Thanks
R
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2024 06:03 AM
The extended table cmdb_ci_win_server will use the Display field from cmdb_ci. You can include the Parent field in the list view that is shown when clicking on the magnifying glass icon by right-clicking the column headers as an Admin - just like any other list view, but the display field once a record is selected is always going to show Name for Configuration item - unless you change it system-wide on the cmdb_ci table to some other field, which will then be in effect for every table that extends cmdb_ci.