IPrxDataCache.UseDataCache

Fore Syntax

UseDataCache: Boolean;

Fore.NET Syntax

UseDataCache: boolean;

Description

The UseDataCache property determines the attribute of data caching use.

Comments

Available values:

All data obtained from the source according to the specified selection is passed to cache. On changing selection data is taken from cache. Missing data is extracted from the data source and is also cached.

Fore Example

Executing the example requires a regular report with the REGULAR_REPORT identifier, which contains relational data area.

Add links to the Metabase, Report system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    Report: IPrxReport;
    DataCache: IPrxDataCache;
Begin
    MB := MetabaseClass.Active;
    Report := MB.ItemById("REGULAR_REPORT").Edit As IPrxReport;
    DataCache := Report.TableSources.Item(0).DataCache;
    DataCache.UseDataCache := False;
    (Report As IMetabaseObject).Save;
End Sub UserProc;

After executing the example caching is disabled for relational data area.

Fore.NET Example

The requirements and result of the Fore.NET example execution match with those in the Fore example.

Imports Prognoz.Platform.Interop.Report;

Public Shared Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    Report: IPrxReport;
    DataCache: IPrxDataCache;
Begin
    MB := Params.Metabase;
    Report := MB.ItemById["REGULAR_REPORT"].Edit() As IPrxReport;
    DataCache := Report.TableSources.Item[0].DataCache;
    DataCache.UseDataCache := False;
    (Report As IMetabaseObject).Save();
End Sub;

See also:

IPrxDataCache