ISecurityPackageLogonData.ParamValue

Syntax

ParamValue(ParamName: String): Variant;

Parameters

ParamName. Name of security module parameter.

Description

The ParamValue property determines a value of the parameter of the security module.

Comments

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:

Example

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:

ISecurityPackageLogonData