How to get return value from sub report to main report? -
How to get return value from sub report to main report? -
i using jasperreports 4.5.1 version facing problem sum of value, have 2 study 1 main study , sub-report main study has 3 row , sub study have 5 row , 3 column want lastly column's sum , pass main report. create 1 variable , store sum of column no 3 , homecoming main study every time getting first total null or 0 , not getting lastly table's total
main study ----------------------------------------------------- no item cost discount% ----------------------------------------------------- sub-report 1 150 10 2 b 200 10 3 c 550 25 --------------------------------------------------- main study total sum(prise) ----------------------------------------------------- no item cost discount% ----------------------------------------------------- 1 1150 10 2 b 2500 5 --------------------------------------------------- total sum(prise) ----------------------------------------------------- no item cost discount% ----------------------------------------------------- 1 50000 10 2 b 20500 5 --------------------------------------------------- total sum(prise)
i getting out set sum1= null, sum2==(150+200+550) , sum3 =(1150+2500) , getting 3rd tables sum.
how can solve please help me .
jasper-reports
Comments
Post a Comment