Skip to content

ODTReportingJavaMainListFieldAnywhere

Christian Busch edited this page Oct 17, 2016 · 3 revisions

Loop for fields anywhere with template engine script

Loop for fields in anywhere use syntax of the template engine. For instance if you wish generate list of name of developers you can write that with Velocity :

#foreach($developer in $developers)
  $developer.Name
#end

And write that with Freemarker :

[developers as developer](#list)
  ${developer.name}
[

The only requirement is that you must use Mergefield to set this script. Here a sample with Velocity which use a Mergefield for start/end loop and developer name directive :

(/#list])

After report generation you can see that :

Clone this wiki locally