ParamValue(ParamName: String): Variant;
ParamName. Name of security module parameter.
The ParamValue property determines a value of the parameter of the security module.
Substitution with using of global variables - "%GLOBAL_ARIABLE_IDENTIFIER%" - can be used as a parameter name.. By default, the repository contains variables with the following identifiers:
METABASE_SERVER. Variable value corresponds with a name of the server, on which the current scheme is located.
METABASE_DATABASE. Variable value corresponds with a name of the current scheme.
Executing the example requires that the repository contains a database with the OBJ_DB identifier.
Sub UserProc;
Var
mb: IMetabase;
mbobj: IMetabaseObject;
db: IDatabase;
LogonData: ISecurityPackageLogonData;
Begin
mb := MetabaseClass.Active;
mbobj := mb.ItemById("OBJ_DB").Edit;
db := mbobj As IDatabase;
db.UseMetabaseLogonData := False;
db.Authentication := AuthenticationMode.Password;
db.DriverId := "ORCL";
LogonData := db.LogonData;
LogonData.ParamValue("SERVER") := "Test";
LogonData.ParamValue("SCHEME") := "%METABASE_DATABASE%";
mbobj.Save;
End Sub UserProc;
After executing the example connection settings are redefined for the OBJ_DB database.
See also: