how to automatically set the number of row on table base on a parameter ?

Right now i am building some credit report but there is a problem i dont know how to set dynamic row that i need base on my parameter.
Example : I have Credit plafon $10000 and i wil pay on 3 year so its 36 time monthly instalment.so i need 36 row and if i change the payment to 2 years then i will need 24 row.
Thank you.

Numer Monthly Instalment
1 10000
2 10000
3 10000
4 10000
5 10000

 

dicky44lv's picture
Joined: Mar 6 2016 - 6:25pm
Last seen: 7 years 2 months ago

1 Answer:

Create a subreport or table element and use the following data source expression: new net.sf.jasperreports.engine.JREmptyDataSource($P{NumberOfMonths})

Regards,

Lucian

lucianc's picture
76160
Joined: Jul 17 2006 - 1:10am
Last seen: 22 hours 37 min ago
Feedback
randomness