{"content":[{"text":"Working with Data Caches \n A DataCache object represents a set of records and an index identifying the current record. By default, \n these records are loaded by the DataCacheManager and provided on demand. However, it is possible to \n use the functions of DataCache to alter the records and store the modified cache into the \n DataCacheManager for subsequent components to use.","bbox":{"left":0.09281,"top":0.087945,"width":0.8107659999999999,"height":0.12720099999999998}},{"text":"The filter (fieldname, value) method returns a new DataCache which contains a subset of the original \n cache, retaining only those records where fieldname contains value.","bbox":{"left":0.09281,"top":0.228039,"width":0.793409,"height":0.037737999999999994}},{"text":"See DataCacheManager for an example.","bbox":{"left":0.09281,"top":0.27867,"width":0.316118,"height":0.01677899999999999}},{"text":"DataCacheManager \n The DataCacheManager provides cached access to datasources, so that the records are not read more \n often than necessary. You can obtain a DataCache using the getCache(name) method. You can also set \n a cache explicitly using putCache(name,cache). This option to prime the cache manager by inserting \n records allows arbitrary record processing at any stage in the report generation process.","bbox":{"left":0.09281,"top":0.323768,"width":0.8073760000000001,"height":0.113348}},{"text":"Example :","bbox":{"left":0.09281,"top":0.450008,"width":0.07993900000000001,"height":0.01677899999999999}},{"text":"var all = DataCacheManager.getCache(\"All\");","bbox":{"left":0.139216,"top":0.479806,"width":0.36234900000000003,"height":0.01677899999999999}},{"text":"var filtered = all.filter(\"Column\",Value); // substitute appropriate column names and values","bbox":{"left":0.139216,"top":0.515034,"width":0.713925,"height":0.01677899999999999}},{"text":"DataCacheManager.putCache(\"Filtered\",filtered);","bbox":{"left":0.139216,"top":0.550387,"width":0.390428,"height":0.01677899999999999}},{"text":"Sample :","bbox":{"left":0.097712,"top":0.585614,"width":0.069135,"height":0.01677899999999999}},{"text":"1. Save DataCache.jar to your desired directory.","bbox":{"left":0.107516,"top":0.615412,"width":0.376073,"height":0.01677899999999999}},{"text":"2. Run Elixir Report Designer.","bbox":{"left":0.107516,"top":0.645084,"width":0.239392,"height":0.01677899999999999}},{"text":"3. Click 'Add FileSystem' and select 'Jar FileSystem'.","bbox":{"left":0.107516,"top":0.674882,"width":0.416236,"height":0.01677899999999999}},{"text":"4. Enter 'KnowledgeBase' for Name and point to the downloaded 'DataCache.jar'.","bbox":{"left":0.107516,"top":0.704554,"width":0.6382950000000001,"height":0.01677899999999999}}],"images_bbox":[],"images_bbox_not_text_overlap":[]}