How does one access the Artifacts currently displayed as the result of a filter?
![](http://jazz.net/_images/myphoto/d9d1ecf09a2fdb4fdc48ce2de5d3b8ec.jpg)
My apology if this topic has been addressed but I could not find any information on it on the web/forum.
Using the Client Extension API for the RM application (https://jazz.net/wiki/bin/view/Main/RMExtensionsAPI601#LocationSpecification) I can loop through the Artifacts in a module. However, I cannot find a way to access only those Artifacts currently being displayed (due to an applied filter). Doing this was a simple thing with dxl in DOORS "classic" but I have been unable to find a way to do it in DNG 6.0.1. How can this be done using the Javascript/extension feature?
Comments
Donald Nong
Jul 05 '16, 9:35 p.m.Just a thought, how about only looping through "selected" artifacts? In a filtered view, of course you will need to "Select All" first for this to work.
Greg King
Jul 07 '16, 1:43 p.m.Selecting artifacts may work for extremely small sets of artifacts but is unwieldy for any reasonably sized set of artifacts given that there is no "select all" capability. There will generally be several hundred artifacts shown as a result of a given filter so selecting them individually is not acceptable. I'm not sure I can figure out how to loop through selected artifacts anyway. I presume I would have to subscribe to the Artifact_Selected event and "remember" the latest selection for later use.