IPrxDataSource.IsCached

Fore Syntax

IsCached: Boolean;

Fore.NET Syntax

IsCached: boolean;

Description

The IsCached property returns the attribute of cached regular report data source.

Comments

The property contains available values if regular report data source is a cube.

Available values:

Fore Example

Executing the example requires a regular report with the REGULAR_REPORT identifier that contains data sources: cube without caching, cube with caching.

Add links to the Metabase, Report system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    Report: IPrxReport;
    DtSources: IPrxDataSources;
    DtSource: IPrxDataSource;
Begin
    
// Get the current repository
    MB := MetabaseClass.Active;
    
// Get report
    Report := MB.ItemById("REGULAR_REPORT").Bind As IPrxReport;
    
// Get data report sources
    DtSources := Report.DataSources;
    
// Display the attribute of cached data sources
    For Each DtSource In DtSources Do
        Debug.WriteLine(DtSource.IsCached);
    
End For;
End Sub UserProc;

After executing the example the console displays the attribute of cached data sources: for cube without caching - False, for cube with caching - True.

Fore.NET Example

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

Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.Report;

Public Shared Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    Report: IPrxReport;
    DtSources: IPrxDataSources;
    DtSource: IPrxDataSource;
Begin
    
// Get the current repository
    MB := Params.Metabase;
    
// Get report
    Report := MB.ItemById["REGULAR_REPORT"].Bind() As IPrxReport;
    
// Get data sources
    DtSources := Report.DataSources;
    
// Display the attribute of cached data sources
    For Each DtSource In DtSources Do
        System.Diagnostics.Debug.WriteLine(DtSource.IsCached);
    
End For;
End Sub;

See also:

IPrxDataSource