IMetabaseObjectParamsUpdate.End

Syntax

End_;

Description

The End method resumes changing of repository object parameters.

Comments

This method is used after calling the IMetabaseObjectParams.BeginUpdate method that locks changing of repository object parameters.

Example

Executing the example requires that the repository contains an express report with the EXPRESS identifier.

Add links to the Express, Metabase system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    Analyzer: IEaxAnalyzer;
    Object: IMetabaseObject;
    Upd: IMetabaseObjectParamsUpdate;
    Prms: IEaxDataAreaParams;
    Name: String;
Begin
    // Get repository
    MB := MetabaseClass.Active;
    // Get express report
    Analyzer := MB.ItemById("EXPRESS").Edit As IEaxAnalyzer;
    Object := Analyzer As IMetabaseObject;
    // Add a parameter to express report
    Object.Params.Add;
    // Deny changing of parameters
    Upd := Object.Params.BeginUpdate;
    // Get collection of express report parameters
    Prms := Analyzer.DataArea.Params;
    // Get parameter name and display it in the console window
    Name := Prms.Item(0).Name;
    Debug.WriteLine("Parameter name before its change - " + Name);
    // Change parameter name
    Object.Params.Item(0).Name := "Param";
    // Apply changes and display changed parameter name in the console window
    Upd.End_;
    Debug.WriteLine("Parameter name after its change - " + Name);
End Sub UserProc;

After executing the example the console window displays parameter names before and after its change.

See also:

IMetabaseObjectParamsUpdate