Matter Worklist Right-click
Options
Hi all.
i am working on a function, that will need to be called from the context menu of the Matter WorkList.
When creating iCommands for the folders or the WorkSpaces, I would normally get the mContext.Item("SelectedFolderObject").ObjectID property, but this doesn't work from the Matter WorkList.
Does anyone know which Item in mContext, I should read ?
I can see, there are 13 items, but not what thir names are.
Regards,
Morten
i am working on a function, that will need to be called from the context menu of the Matter WorkList.
When creating iCommands for the folders or the WorkSpaces, I would normally get the mContext.Item("SelectedFolderObject").ObjectID property, but this doesn't work from the Matter WorkList.
Does anyone know which Item in mContext, I should read ?
I can see, there are 13 items, but not what thir names are.
Regards,
Morten
0
Comments
-
Unfortunately not
It would be really great to get a better documentation0 -
The My Worklist node is represented in the API by the IManWorkArea.RecentWorkspaces collection
That is a collection of type IManWorkspace
The context you're therefore looking for is the one which returns you the current session. From there you can access the WorkArea property and query the RecentWorkspaces collection
There are 4 context items returned by a FileSite ICommand on the My Worklist node that will return you the IManSession. They are- SelectedIManObject
- SelectedContentsContainer
- DestinationObject, and
- IManDestinationObject
var session = (IManSession)Context.Item("SelectedContentsContainer");
Context in the above example represents the collection of ContextItem objects returned by the ICommand.Context property
MessageBox.Show(string.Format("There are {0} recent workspaces.", session.WorkArea.RecentWorkspaces.Count));
thanks
Guido0 - SelectedIManObject
-
Thanks, Guido
I'll give it a try0
Categories
- All Categories
- 109 Developer Announcements
- 49 Articles
- 100 General Questions
- 122 IM Services
- 40 OpenText Hackathon
- 31 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 897 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 122 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
TeamSite Developer Resources
If you are interested in gaining full access to the content, you can register for a My Support account here.
- Docker Automation
- LiveSite Content Services (LSCS) REST API
- Single Page Application (SPA) Modules
- TeamSite Add-ons
If you are interested in gaining full access to the content, you can register for a My Support account here.