Filter Via Data Cache

This recipe shows how to filter via DataCache by using Java code.

Major steps include the following:

  1. Create a report template (DataCache.rml) using the given datasources (tab-Master_DataSource.ds and tab-Secondary_DataSource.ds).
  2. Add the “CaseID” field under “Group Header: CaseID”. Add the “CaseName” field under “Group Header: CaseName”. Add the “ChildName” field under “Detail”.
  3. Under “Group Footer: CaseID”, add the following Java code into “Table Properties > On Render Begin”:FilteredData = DataCacheManager.getCache(“FilteredData”);

FilterViaDataCache

To download the necessary files for this recipe, refer to the attached ZIP package.
FilteringViaDataCache.zip (4.3 KB)