Jump to content
Changes to the Jaspersoft community edition download ×

Passing parameters(not fileds) from master report to the subreport


mmm.shz87

Recommended Posts

Dear users,

I am a begginer in developing reports using Jasper Report. At present, I faced with a problem that I can not solve it. As a matter of fact, I have a main report and a subreport. Furthermore, I want filling a text field in the main report using calculated value of subreport. now, I want to pass a parameter from main report to the subreport and do a query in subreport based on passed parameter. When I pass fields(not parameter) from main report to the subreport, the query of subreport is done corectly and the text field are filled with corect value. While, when I pass parameter(not field) from main report, query of subreport is not done corectly and the text field of main report remain blank.

Also, I have read and tested approaches that mentioned in the Jaspersoft Community, but i can not solve it.

Could you please help me to solve this problem in passing parameters from main report to the subreort?

I thanks for your consideration in advance.

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

I am actually having the opposite issue... I just posted my question, so maybe if you figured it out, you could look at mine.  But have you tried in your parameters list of subreport properties... using $P{variable_name}.  Im sure you have.  But figured I would try to help out.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...