Skip to main content
Question

Process features in a loop


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
  • 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
  • May 17, 2023

That's perfect, Thank You!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings