IEaxAnalyzerOptions.IgnoreDirtyOnClose

Fore Syntax

IgnoreDirtyOnClose: Boolean;

Fore.NET Syntax

IgnoreDirtyOnClose: boolean;

Description

The IgnoreDirtyOnClose property determines status of the Do not Ask Confirmation on Closing Modified Report option.

Comments

If this option is enabled, all unsaved changes are cancelled.

Fore Example

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

Add links to the Metabase and Express system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    MObj: IMetabaseObject;
    Expr: IEaxAnalyzer;
    Opt: IEaxAnalyzerOptions;
Begin
    MB := MetabaseClass.Active;
    MObj := MB.ItemById(
"EXPRESS_REPORT").Edit;
    Expr := MObj 
As IEaxAnalyzer;
    Opt := Expr.Options;
    Opt.IgnoreDirtyOnClose := 
True;
    MObj.Save;
End Sub UserProc;

After executing the example the Do not Ask Confirmation on Closing Modified Report option is enabled.

Fore.NET Example

The requirements and result of Fore.NET Example execution are the same as in the Fore Example.

Imports Prognoz.Platform.Interop.Express;

Public Shared Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    MObj: IMetabaseObject;
    Expr: IEaxAnalyzer;
    Opt: IEaxAnalyzerOptions;
Begin
    MB := Params.Metabase;
    MObj := MB.ItemById["EXPRESS_REPORT"].Edit();
    Expr := MObj As IEaxAnalyzer;
    Opt := Expr.Options;
    Opt.IgnoreDirtyOnClose := True;
    MObj.Save();
End Sub;

See also:

IEaxAnalyzerOptions