how to automatically set the number of row on table base on a parameter ?
Posted on March 6, 2016 at 9:59pm
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 |
Joined: Mar 6 2016 - 6:25pm
Last seen: 7 years 2 months ago
Posted on March 7, 2016 at 12:05am
Create a subreport or table element and use the following data source expression: new net.sf.jasperreports.engine.JREmptyDataSource($P{NumberOfMonths})
Regards,
Lucian
Joined: Jul 17 2006 - 1:10am
Last seen: 22 hours 37 min ago