UseDataCache: Boolean;
The UseDataCache property determines whether data caching is used.
Available values:
True. Default value. Data caching is enabled.
False. Data caching is disabled.
All data obtained from the source according to the specified selection is loaded to cache. Data is obtained from cache on selection change. Missing data is obtained from the data source and is also cached.
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.
See also: