The DataCacheManager provides cached access to datasources, so that the records are not read more often than necessary. You can obtain a
DataCache using the
getCache(name) method. You can also set a cache explicitly using
putCache(name,cache). This option to prime the cache manager by inserting records allows arbitrary record processing at any stage in the report generation process.
Example
var all = DataCacheManager.getCache("All");
var filtered = all.filter("Column",Value); // substitute appropriate column names and values
DataCacheManager.putCache("Filtered",filtered);
Sample
DataCache.jar
- Save the file to desired directory
- Run Elixir Report Designer
- Click on 'Add FileSystem' and select 'Jar FileSystem'
- Enter 'KnowledgeBase' for Name and locate 'DataCache.jar'
--
JonPriddey - 12 Sep 2005