Skip to main content

Using an undetermined number of records as input, I want to process 20 rows at a time with an html report generator to produce a table, and then output pages of 20 rows each. I have a process that works, but it uses a separate html report generator for each page of twenty rows. How can I create a loop that outputs sets of pages with 20 rows ?

HTMLReportGenerator has a Group By option.

You just need to create an unique attribute for each group of 20 rows. You can use ModuloCounter or Conter (starting at 1 not 0) followed by AttributeManager with a new attribute defines as @Evaluate(@ceil(@Value(_count)/20,0)).

Then, just use that attribute in Group By.

HTML Report Generator - GroupBy


That's perfect, Thank You!


Reply