# Access a view's child components using viewPath

**URL:** <https://forum.inductiveautomation.com/t/access-a-views-child-components-using-viewpath/84882>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [January 29, 2024, 11:33am UTC](https://forum.inductiveautomation.com/t/access-a-views-child-components-using-viewpath/84882 "2024-01-29T11:33:20Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [January 29, 2024, 4:54pm UTC](https://forum.inductiveautomation.com/t/access-a-views-child-components-using-viewpath/84882/5 "2024-01-29T16:54:33Z")

</div>

If you're going to do this, at least avoid the insane performance hit of calling into the local filesystem each time.

You could install [Ignition Extensions](https://forum.inductiveautomation.com/t/ignition-extensions-convenience-utilities-for-advanced-users/64615) (or search on this forum for access to the IgnitionGateway class, then retrieve the ProjectManager from it).

Once you've got a ProjectManager, you can [ask it for a given project by name](https://files.inductiveautomation.com/sdk/javadoc/ignition81/8.1.36/com/inductiveautomation/ignition/gateway/project/ProjectManagerBase.html#getProject(java.lang.String)), which you can then ask for a specific resource [by ResourcePath](https://files.inductiveautomation.com/sdk/javadoc/ignition81/8.1.36/com/inductiveautomation/ignition/common/project/RuntimeProject.html#getResource(com.inductiveautomation.ignition.common.project.resource.ResourcePath)). You then ask the resource for its data [under the `view.json` key](https://files.inductiveautomation.com/sdk/javadoc/ignition81/8.1.36/com/inductiveautomation/ignition/common/project/resource/ProjectResource.html#getData(java.lang.String)).

This will all work off the in-memory representation of the project and should be dramatically faster than reading from the filesystem each time.

There's possibly also a better way to do this without the raw project resource involved at all, but it's also possible such a thing isn't actually exposed to you in scripting.

---

_[View the full topic](https://forum.inductiveautomation.com/t/access-a-views-child-components-using-viewpath/84882)._
