This recipe shows how to filter via DataCache by using Java code.
Major steps include the following:
- Create a report template (DataCache.rml) using the given datasources (tab-Master_DataSource.ds and tab-Secondary_DataSource.ds).
- Add the “CaseID” field under “Group Header: CaseID”. Add the “CaseName” field under “Group Header: CaseName”. Add the “ChildName” field under “Detail”.
- Under “Group Footer: CaseID”, add the following Java code into “Table Properties > On Render Begin”:FilteredData = DataCacheManager.getCache(“FilteredData”);
To download the necessary files for this recipe, refer to the attached ZIP package.
FilteringViaDataCache.zip (4.3 KB)