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);
ParameterData TypeDescription

hInstance

ESS_HINST_T

API instance handle

Server

ESS_SVRNAME_T

Network server name string

The server name can be expressed as a URL representing the APS servlet endpoint with the Essbase failover cluster name; for example:

http://myhost:13080/aps/Essbase?clustername=Essbase-Cluster1

For secure mode (SSL), the URL syntax is

http[s]://host:port/aps/Essbase?ClusterName=logicalName&SecureMODE=yesORno

For example,

https://myhost:13080/aps/Essbase?clustername=Essbase-Cluster1&SecureMODE=Yes

UserName

ESS_USERNAME_T

User name string

Password

ESS_PASSWORD_T

Password string

AppName

ESS_ APPNAME _T

Application name

DbName

ESS_ DBNAME _T

Database name

Options

ESS_USHORT_T

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—Enables the user to log in and select an application and database interactively in the dialog box.

pAccess

ESS_PACCESS_T

Address of variable to receive database access level.

phCtx

ESS_PHCTX_T

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.

Notes

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.

Access

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

See Also