Skip to main content
Question

Process features in a loop

  • May 17, 2023
  • 2 replies
  • 22 views

smclaugh1
Contributor
Forum|alt.badge.img+5

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 ?

2 replies

caracadrian
Contributor
Forum|alt.badge.img+23
  • Contributor
  • 571 replies
  • May 17, 2023

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


smclaugh1
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • 14 replies
  • May 17, 2023

That's perfect, Thank You!