andylauies
-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forum
Events
Featured Visualizations
Knowledge Base
Documentation (PDF Downloads)
Blog
Documentation (Test Area)
Documentation
Dr. Jaspersoft Webinar Series
Downloads
Posts posted by andylauies
-
-
i have written down the case, why it can't display above ? can anyone see the case and question that i asked ?
i repeat it again here =]
Hello everyone,
how to pass total page number of master report to subreport ?
Actually, i' ve tried :
1.pass the $V{PAGE_NUMBER} to the parameter in the subreport ----> the value passed is not the total page number of the master report !!!
2.create a new parameter in master report and set the "Default Value Expression" to "$V{PAGE_NUMBER}", then pass this parameter to the parameter in subreport ---------> the value is null !!!
I know that in order to get the total page number, i have to create a text field and set the "Text Field Expression" to "$V{PAGE_NUMBER} " and set the Evaluation Time to "Report". However, it becomes a text field which cannot be passed to subreport !!! any method to pass a text field to subreport ?
Also, i found that there is a way to return variable from subreport to the variable in the master report. So, i would like to know is there any way to pass a variable from master report ( $V{PAGE_NUMBER} ) to the variable in the subreport ? If yes, i can just pass the variable $V{PAGE_NUMBER} to a variable created in the subreport and then set the Evaluation Time of the Text field of this variable to "Report" then i can get the total page number that i want =].
i really need your help =] thank you ! =]
Post Edited by andylauies at 09/16/2011 07:25
Getting total #pages back to the program
in Products
Posted
this method didn't work, the value returned is always "1" !