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)
Register/UnRegister Server... window
Azan
Hi,
Just wondering if it is possible (if so how) from a third party application to view and configure the Register/UnRegister Server... window in DeskSite? Located in Login->Register/UnRegister Server...
Much like the way Microsoft Word utilizes it through the WorkSite menu.
Thanks
Azan.
Find more posts tagged with
Comments
DaleN
Sounds like the command you're after is IMANEXTLib.RegisterServerCmd. Here's an example of how I've used it:
Dim pDMS As New ManDMS
Dim pSessions As IManSessions
Dim pLoginCmd As New IMANEXTLib.RegisterServerCmd
Dim pContextItems As New IMANEXTLib.ContextItems
Dim blnRefresh As Boolean
pSessions = pDMS.Sessions
pContextItems.Add("NRTDMS", pDMS)
pContextItems.Add("NRTSessions", pSessions)
pContextItems.Add("ParentWindow", Me.Handle)
pLoginCmd.Initialize(pContextItems)
pLoginCmd.Update()
If pLoginCmd.Status = IMANEXTLib.CommandStatus.nrActiveCommand Then
pLoginCmd.Execute()
On Error Resume Next
blnRefresh = pContextItems.Item("IManExt.ForceRefresh")
On Error GoTo 0
If blnRefresh = True Then
'you are logged in and good to go
End If
End If
After that the pSessions collection will be populated with the logged in sessions selected by the user.
Hope that helps!