IgnoreDirtyOnClose: Boolean;
IgnoreDirtyOnClose: boolean;
The IgnoreDirtyOnClose property determines status of the Do not Ask Confirmation on Closing Modified Report option.
If this option is enabled, all unsaved changes are cancelled.
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.
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: