OpenApplication

Opens a Financial Management application. OpenApplication returns object references to HsxServer and HsvSession objects.

You must call SetLogonInfoSSO before calling OpenApplication. SetLogonInfoSSO specifies the username, domain, and password or an SSO token; OpenApplication then authenticates this logon information.

Syntax

<HsxClient>.OpenApplication bstrClusterName, bstrProduct, bstrApp, ppIUnkServer, ppIUnkSession

Argument

Description

bstrClusterName

String (ByVal). The name of the application server cluster.

bstrProduct

String (ByVal). The product name. Enter “Financial Management” to open a Financial Management application.

bstrApp

String (ByVal). The name of the application.

ppIUnkServer

HsxServer object. Returns an object reference to the HsxServer object. For information on this object, see HsxServer Type Library.

ppIUnkSession

HsvSession object. Returns an object reference to an HsvSession object. For information on this object, see HsvSession Type Library.

Example

The following function logs a user on to an application and returns an HsvSession object reference. The function takes logon credentials that are passed to SetLogonInfoSSO and server and application names that are passed to OpenApplication.

Function openHfmApp(sDomain As String, sUser As String, _
   sPass As String, sServer As String, sApp As String)
Dim cClient As HsxClient, cSession As HsvSession
Dim cServer As HsxServer
Set cClient = New HsxClient
cClient.SetLogonInfoSSO sDomain, sUser, "", sPass
cClient.OpenApplication sServer, "Financial Management", _
    sApp, cServer, cSession
Set openHfmApp = cSession
End Function