IPrxDataSource.IsCached

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:

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.

See also:

IPrxDataSource