Find Project and Database Linked to a Tag Provider in Ignition

Is there any way to get the project name and database based on a tag provider?
I would like to know which project the tag provider is connected to and which database is configured within that project.
If anyone has done this previously or has any idea, please share. It would be really helpful for me.

Tag providers can be used by any project. I assume you want to know which projects have their default tp set to the one you’re looking for?

1 Like

Right now, I only know the tag provider name.
I’m trying to find out which project has this tag provider set as its default.
After identifying the project, I also need to check which database that project is configured to use.

Is there any method or best practice to map this relationship?

Tag Provider → Project → Database

Not in any supported way. But with a gateway context, you can use .getProjectManager() to retrieve the ProjectManager.

From that and its superclass, you can get project properties, which include the items of interest.

Be aware that many projects can use the same tag providers, whether as defaults or explicitly in tag bindings or scripts. The "relationship" you are targeting is vague and certainly not enforced.

Why do you need this?

2 Likes