EssAutoLogin

EssAutoLogin() displays a dialog box that allows the user to log in to an Essbase Server, and optionally select an active application and database.

Syntax

ESS_FUNC_M EssAutoLogin (hInstance, Server, UserName,
Password, AppName, DbName, Options, pAccess, phCtx);
ESS_HINST_T hInstance
ESS_SVRNAME_T Server
ESS_USERNAME_T UserName
ESS_PASSWORD_T Password
ESS_ APPNAME _T AppName
ESS_ DBNAME _T DbName
ESS_USHORT_T Options
ESS_PACCESS_T pAccess
ESS_PHCTX_T phCtx

Parameters

hInstance API instance handle
Server Network server name string
UserName User name string
Password Password string
AppName Application name
DbName Database name
Options Options flag. Values:

AUTO_NODIALOG: Attempts to log the user in without displaying the dialog, using the default settings (from the above arguments).
AUTO_NOSELECT: Allows the user to log in without selecting an application and database (lower part of the dialog is not displayed).
You can use both AUTO_NODIALOG and AUTO_NOSELECT with an OR operator (|) to log in a user without a dialog box and not select an application and database.
AUTO_NODIALOG|AUTO_NOSELECT
AUTO_DEFAULT: Allows the user to log in and select an application and database interactively in the dialog box.

pAccess Address of variable to receive database access level.
phCtx Address of variable to receive Essbase context handle. Set to ESS_INVALID_HCTX unless you are reusing an existing (valid) context handle to log in again.

Return Value

If successful, returns an Essbase context handle in phCtx, which can be passed as an argument in subsequent calls to other API functions. Also returns the user's access level to the selected application and database (if selected) in pAccess.

Notes

Access

Before calling this function, you must first initialize the API and obtain a valid instance handle by calling the EssInit() function.

See Also

EssInit()
EssListDatabases()
EssLogin()
EssLogout()
EssSetActive()