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)
propertiescmd
shirinp
I am trying to develop a custom command, where once a folder is selected, i create a dummy document, check it in, and then launch the properties dialog for that document.
So far, I have the document being created and checked in to the folder. I am unable to launch the propertiescmd dialog because it says error: Could not get database(s) collection.
Within in my command's Execute method, I am passing in:
mContext.Add("SelectedNRTDocuments", pd);
IManDatabases dbs = selectedFolder.Database.Session.Databases;
mContext.Add("IManExt.SelectionDlg.Object", dbs );
PropertiesCmd cmd = new PropertiesCmdClass();
cmd.Initialize (mContext);
cmd.Update();
cmd.Execute();
Any help will be great!
Find more posts tagged with
Comments
jny
Use the EditProfileCmd instead.