I'm looking to develop a feature for filtering and highlighting assets, allowing users to easily search and locate them on a screen displaying a list of all assets.
The feature involves a screen where a 'viewPath' parameter is input, linking to an embedded view. I plan to use scripting to fetch the view objects using this 'viewPath', enabling access to all components within the embedded view. This approach will separate the code, allowing any generic view to be used.
It's similar to employing self.parent.getChildren() in a view to obtain all page components.
My question is: do I need to manually read the view's JSON file from the file system, or is there an existing system function that can perform this task?
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.