Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Selecting server when connected to multiple servers
Azan
I'm saving a document into worksite using an importCmd in VB.NET after connecting to 2 worksite servers. This is fine when using the Enhanced dialogs as the profile window has a control to switch between the 2.
However when using non-enhanced dialogs this control isnt available, so i was wondering how to specify the server to save the document to.
Using word for example displays a "choose server" dialog after the integrated save as
Find more posts tagged with
Comments
jny
Which dialog are you specifically using, the BrowseFoldersDlg or the DocOpenDlg? Would you show your code and let me know the version of WorkSite this is?
Azan
The dialog appears to be the NewProfileDlg when using non-enhanced dialogs and the BrowseFoldersDlg otherwise. This is in worksite 8.
(VB.net)
Dim keepcheckedout As Long = 1
Dim contextItems As New iManExtLib.ContextItems
contextItems.Add("ParentWindow", Process.GetCurrentProcess().MainWindowHandle.ToInt32())
contextItems.Add("DestinationObject", _NRTSession)
contextItems.Add("iManExt.Import.FileName", fileName)
contextItems.Add("iManExt.Import.KeepCheckedOut", keepcheckedout)
Dim importCmd As New IManImportCmdClassExtended
importCmd.Initialize(contextItems)
importCmd.Update()
If (importCmd.Status = iManExtLib.CommandStatus.nrActiveCommand) Then
importCmd.Execute()
End if
jny
The reason I asked which file-select dialg you were using was because I were thinking that you were having problems invoking an instance of that dialog, i.e, either BrowseFoldersDlg or DocOpenDlg, which would be used for the end-user to select the server.
I'm thinking that you are picking up the selected server from one of those dialogs first, then pass that, as a session object, to the ImportCmd's contextitem, "DestinationObject".