Given a class name, how to get all the subclasses
I have a class name stored as %String,
How could I get the names of all its child classes?
Thanks you.
Discussion (3)0
Comments
select name from %Dictionary.CompiledClass where Super='yourclassnamehere'
This condition is insufficient for multi-level inheritance (C is a subclass of B, B is subclass of A. So C is subclass of A but Super wouldn't show this information). More on that in here.
Also, have a look at the query "SubclassOf" in %Dictionary.ClassDefinitionQuery:
http://docs.intersystems.com/latest/csp/documatic/%25CSP.Documatic.cls?…