Written by

Question Farman Ullah · Apr 2, 2024

Business component using a particular class

Hello,

I am trying to find or locate all Intersystems business components using a particular class. Like I want to find component is using abc.test.cls class.

Product version: HealthShare 2018.1
$ZV: cache for windows 2018.1.8

Comments

David Hockenbroch · Apr 2, 2024

In SQL, you can use the following query:

select * from %dictionary.compiledclass where primarysuper like '%abc.test.cls%'

0
Farman Ullah · Apr 2, 2024

@David Hockenbroch Thank you for your response, but I still don't see which operations (for e.g) are utilizing the abc.test.cls.

0
Enrico Parisi · Apr 2, 2024

What kind of class is abc.test.cls?

Is this class inherited by business components? Is it a utility called from business components? A datatype class Other?

0
Farman Ullah · Apr 2, 2024

UPDATE: I had all the productions exported as .xml file and then opened the file in Notepad. With the help of ctrl F,  I was able to locate which component is using the desired class name. This is a very manual way of doing it and is good until the prod config remain the same. Working on and interested to get an automated process of running it every time by providing the class name and it pulls the info.

0
Enrico Parisi  Apr 2, 2024 to Farman Ullah

For your response I assume you are searching for a class used by a Business Host component within a production.

Using IRIS you can search for that, and much more, using "Interface Reference" within the Management portal:

Unfortunately you are using an old version where this feature is not available.

Add this to the (possibly long) list of good reasons to move to IRIS.

0
Eduard Lebedyuk · Apr 2, 2024

Run this query:

SELECT *
FROM Ens_Config.Item
WHERE ClassName = ?
0