Retrieving all attributes within a module via RM.Data.getContentsAttributes client extension API
![](http://jazz.net/_images/myphoto/4084d7c0c28d175c20262e1c5f773803.jpg)
I've been experimenting with using the RM.Data.getContentsAttributes Client API in DNG 7.0.3 by doing the following:
- Open up a module on a stream (let's call this stream 1)
-
Get an RM.ArtifactRef object for the module via subscribing to the ARTIFACT_OPENED event.
- Call RM.Data.getContentsAttributes Client API to get attributes for all of the artifacts in the RM.ArtifactRef object obtained from step 2. This should be pulling all artifacts for the module in stream 1.
- Switch to another stream (let's call this stream 2) via the context switcher in DOORS NEXT which causes the module to be opened in stream 2. I'm not waiting for the Client API call in step 3 to return results before switching to another stream.
- Get a new RM.ArtifactRef object for the module via subscribing to the ARTIFACT_OPENED event.
- Call RM.Data.getContentsAttributes Client API to get attributes for all of the artifacts in the RM.ArtifactRef object obtained from step 5. This should be pulling all artifacts for the module in stream 2.
I've tested the following a few times and it appears that it is pulling the artifact data for the appropriate stream that is switched to, but is the above steps I'm doing safe, or could it potentially lead to erratic behavior? And if it is safe in DNG 7.0.3, I'm assuming that it would be safe to do in DNG 7.0.2 as well?
Comments
Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Jan 22, 3:42 a.m.Consider consulting.