GetSessionDatabase
Description
Returns information about the database that is being accessed in the current session.
This method differs from the GetAccessibleDatabases method in that it returns the DatabaseDescription object associated with the current session. You can only call this method after the user has logged in to a particular database.
Syntax
Perl
$databaseDescObj = $session->GetSessionDatabase();
- Identifier
- Description
- session
- The Session object that represents the current database-access session.
- Return value
- A DatabaseDesc Object that contains information about the current database.
Example
Perl
$sessionObj = $entity->GetSession();
$dbDescObj = $sessionObj->GetSessionDatabase();
$currentdbName = $dbDescObj->GetDatabaseName();
$entity->SetFieldValue ("headline", $currentdbName);