Selecting an Active Application and Database

In addition to the context handle, the login functions also return a list of the applications and databases to which the logged in user has access (a program can obtain this list at any time by calling the EsbListDatabases() function). The program allows the user to select a specific application and database by calling the EsbSetActive() function.

If EsbAutoLogin() is used to log in, it can optionally set the active application and database.

To get information about an Essbase application (for example, whether or not it is already loaded), call the EsbGetApplicationState() or EsbGetApplicationInfo() functions. To get information about a specific database, call the EsbGetDatabaseState() or EsbGetDatabaseInfo() functions. You can call these functions before setting the active application and database.