monksy
monksy

Reputation: 14234

Looping in JasperReports

Is there a way to do a single line loop in a TextField expression? I know that it allows for ternary operations, but what about loops.

For example if I wanted a series of numbers of five numbers after a given field, in the detail, how would you display that?

For example

 The field b has a value of 4. How would you make it print out [inside a Text field] 4 5 6 7 8

Upvotes: 4

Views: 4892

Answers (1)

monksy
monksy

Reputation: 14234

The solution to this is to create a scriptlet. There is no functionality inside the expressions that would allow for a loop.

Upvotes: 3

Related Questions