Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Showing WorkSite Dialogs - "New Workspace Profile"
Balaji_Proteans
How to display the "New Workspace Profile" Dialog?
Code Below
------------------
***************************************************************************************************************************
IManage.IManDMS ManDMS = new IManage.ManDMS();//Create DMS
IManage.IManSession ManSession = ManDMS.Sessions.Add("PRODSK0216");// Create Session
ManSession.TrustedLogin();//Login
IManage.IManDatabase ManDatabase = ManSession.Databases.ItemByIndex(1);//Choose Database for Workspace
IMANEXT2Lib.IManNewWorkspaceCmd NewWorkSpaceCmd = new IMANEXT2Lib.IManNewWorkspaceCmd();//Create Command
//Add Context Items
IMANEXTLib.ContextItems ContextItems = new IMANEXTLib.ContextItems();
ContextItems.Add("IManDMS", ManDMS);
ContextItems.Add("SelectedIManSession", WorkSpaceSearchCmd.Context.Item("SelectedIManSession"));
ContextItems.Add("IManDestinationObject", ManDatabase);
NewWorkSpaceCmd.Initialize(ContextItems);//Initialize
NewWorkSpaceCmd.Update();//Update
NewWorkSpaceCmd.Execute();//Execute
***************************************************************************************************************************
Above code raises exception -
******************************************************************
IMANEXT2: Unable to create a new WorkSpace.
IMANEXT2
The parameter is incorrect.
******************************************************************
Find more posts tagged with
Comments
There are no comments yet