GetSessionDatabase

Descrizione

Restituisce le informazioni sul database a cui si accede nella sessione corrente.

Questo metodo differisce dal metodo GetAccessibleDatabases in quanto restituisce l'oggetto DatabaseDescription associato alla sessione corrente. È solo possibile richiamare questo metodo una volta che l'utente ha effettuato l'accesso a un database particolare.

Sintassi

VBScript

databaseDescObj = session.GetSessionDatabase 

Perl

$databaseDescObj = $session->GetSessionDatabase(); 
Identificativo
Descrizione
session
L'oggetto Session che rappresenta la sessione di accesso al database corrente.
Valore di ritorno
Un Oggetto DatabaseDesc che contiene le informazioni sul database corrente.

Esempi

VBScript

set sessionObj = GetSession

set dbDescObj = sessionObj.GetSessionDatabase

currentdbName = dbDescObj.GetDatabaseName

SetFieldValue "headline", currentdbName 

Perl

$sessionObj = $entity->GetSession();

$dbDescObj = $sessionObj->GetSessionDatabase();

$currentdbName = $dbDescObj->GetDatabaseName();

$entity->SetFieldValue ("headline", $currentdbName); 

Feedback