Metadata problem
Hi,
----------------------------------------
Tech Tip: Clearing the Meta Data Cache
----------------------------------------
There is a global meta data cache that the ReportBuilder uses to cache
information about the available database tables and fields. You can clear
the meta data cache using the following code.
uses
daMetaData;
begin
gMetaData.Clear;
end;
============
This tech tip does not work. Not only does daMetadata not contain any
variables or identifiers that might enable this call, but there isn't a
single identifier in the entire source code that contains this.
I tried metadataManager, experimented with various methods and
properties and am now tired of groping. Please indicate a tried and
tested method of clearing the metadata cache.
In particular, I need to know which unit to insert the uses and sample
code into, and does it work if I am invoking my reports exclusively from
a report explorer interface (in other words without any report objects).
Thank you.
Philippe
----------------------------------------
Tech Tip: Clearing the Meta Data Cache
----------------------------------------
There is a global meta data cache that the ReportBuilder uses to cache
information about the available database tables and fields. You can clear
the meta data cache using the following code.
uses
daMetaData;
begin
gMetaData.Clear;
end;
============
This tech tip does not work. Not only does daMetadata not contain any
variables or identifiers that might enable this call, but there isn't a
single identifier in the entire source code that contains this.
I tried metadataManager, experimented with various methods and
properties and am now tired of groping. Please indicate a tried and
tested method of clearing the metadata cache.
In particular, I need to know which unit to insert the uses and sample
code into, and does it work if I am invoking my reports exclusively from
a report explorer interface (in other words without any report objects).
Thank you.
Philippe
This discussion has been closed.
Comments
Thanks for bringing this to our attention. This tip is strictly for users
of ReportBuilder prior to Version 7. To clear the metadata cache in RB 7,
you will now need to use the global object gMetaDataManager using
daMetaDataManager.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com