Anyone have experience using VBA to retrieve the WorkspaceID for a diagram or definition?
I am trying to write a macro to display the diagrams that have been either created or updated in the current workspace. I know there is a way to do this because the workspaceID is displayed when merging workspaces and I can display the WorkspaceID using the reporting system within SA.
It is not immediately obvious how to obtain this data using VBA - it is not a property on the diagram and I can't find anyting in the doc revealing how to obtain this data using VBA (not a metric, field, or relation as far as I can tell).
NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
This topic has been locked.
3 replies Latest Post - 2012-11-13T17:39:29Z by SystemAdmin
Pinned topic Getting workspaceID for a diagram
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2012-11-13T17:39:29Z at 2012-11-13T17:39:29Z by SystemAdmin
Re: Getting workspaceID for a diagram2012-11-12T21:45:48Z in response to SystemAdminI still can't find an obvious way to do this, but I did figure out an inglorious workaround. Involves using the ExecuteReport method (because I can retrieve the workspaceid through the report interface), then reading the generated XML file to select the current workspace items and load those into a scripting dictionary. Then the dictionary is available to compare objects (by ddid) to determine if they belong to the current workspace.
This is a long way to go to get what I need, so if anyone figures out how to access the workspaceid for a diagram/definition more directly, please share.
ArifH 2700020US430 Posts
Re: Getting workspaceID for a diagram2012-11-13T17:39:29Z in response to ArifHI have that part down - this is the workspaceid that I am comparing to determine if the diagram 'belongs' to the current workspace.
What I would like to see is a similar method for a diagram/definition that would return the workspaceid.