DelayedLoad: Boolean;
DelayedLoad: boolean;
The DelayedLoad property determines whether delayed loading is available for analytical area sheets.
Available values:
True. Loading of all sheets is delayed. Only active sheet is loaded. Default value on working with data entry forms.
False. All sheets of analytical area are loaded. Default value on working with reports.
Executing the example requires that repository contains an express-report with the EXPRESS identifier that contains two sheets.
The property use for data entry forms is given in the example for IEaxDataAreaSource.IsLoaded.
Add links to the Express, Metabase system assemblies.
Sub UserProc;
Var
MB: IMetabase;
Express: IEaxAnalyzer;
Area: IEaxDataArea;
Sheets: IEaxSheets;
Sheet: IEaxSheet;
Begin
// Get repository
MB := MetabaseClass.Active;
// Get express report
Express := MB.ItemById("EXPRESS").Edit As IEaxAnalyzer;
// Get analytical area of express report
Area := Express.DataArea;
// Set delayed sheet loading
Area.DelayedLoad := True;
// Get report sheets
Sheets := Express.Sheets;
// Set the second sheet as active
Sheet := Sheets.Item(1);
Sheet.Active := True;
// Load the first report sheet
Sheet := Sheets.Item(0);
If Not Sheet.IsLoaded Then
Sheet.Load;
End If;
// Save report
(Express As IMetabaseObject).Save;
End Sub UserProc;
Imports Prognoz.Platform.Interop.Express;
…
Public Shared Sub Main(Params: StartParams);
Var
MB: IMetabase;
Express: IEaxAnalyzer;
Area: IEaxDataArea;
Sheets: IEaxSheets;
Sheet: IEaxSheet;
Begin
// Get repository
MB := Params.Metabase;
// Get express report
Express := MB.ItemById["EXPRESS"].Edit() As IEaxAnalyzer;
// Get analytical area of express report
Area := Express.DataArea;
// Set delayed sheet loading
Area.DelayedLoad := True;
// Get report sheets
Sheets := Express.Sheets;
// Set the second sheet as active
Sheet := Sheets.Item[1];
Sheet.Active := True;
// Load the first report sheet
Sheet := Sheets.Item[0];
If Not Sheet.IsLoaded Then
Sheet.Load();
End If;
// Save report
(Express As IMetabaseObject).Save();
End Sub;
After executing the example, the delayed loading of sheets will be set for express report, the second sheet will be active, the first sheet will be loaded.
See also: