Method to determine parent/child class relationship
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2016 09:41 AM
I am trying to determine if there is any OOB options to determine if a specific table class is the child/parent of another table?
Example, cmdb_ci_win_server is a child class of cmdb_ci_server.
Any insight would be appreciated.
-Benny-
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2016 09:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2016 10:53 AM
Thanks for the reply. I was hoping to have a systematic way of doing it via script.
I think I found what I was looking for using the INSTANCEOF qualifier.
i.e. sys_class_nameINSTANCEOFcmdb_ci_server.
Other options also welcome...
Regards,
-Benny-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2016 11:01 AM
Well spotted.