How To Hide Duplicates

This recipe demonstrates the ability to hide duplicates for each record in the detail band.

Steps taken:

  1. Create a report template (report.rml) using the given datasource (FruitSales.ds).
  2. Declare 2 variables at Function Definition:var value1 = “”;
    var value2 = “”;
  3. On renderEnd of the comparison, the 2 buffers ( value 1 and value 2 ) are used to store the previous values to be compared later on the next record.value2 = Fruit;
    value1 = Company;

HowToHideDuplicates

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