Jump to content

Communication between report & his subreport


ktrinad

Recommended Posts

By: Krzysztof Salawa - yodaknight

Communication between report & his subreport

2003-03-18 05:18

I have subreport, in which I defined some my variables.

Problem: I want to read the value of my subreport's variables from master report. Is there any way can I do it ?

Thanks for answer in advance.

 

 

 

 

By: Giulio Toffoli - gt78

RE: Communication between report & his subreport

2003-03-18 07:38

Hm. I dont'know. Try to ask to Teodor at jasperreports forum.

 

Giulio

 

 

 

 

By: juan david vergara perez - jvergara

RE: Communication between report & his subreport

2003-03-18 11:09

hi, i don't know if that is possible.

But i can suggest something, but i'm not sure if it works.

 

You can try to define your variables not in the subreport. Define them into your master report, and pass to the subreport like parameters with the subreportParameter expression.

In this way you can modify the parameter value in the subreport, and this value is reflected in the master report.

But you migth take an advertence.

This can work, only if the parameter passing is by reference, and not by value.

but i'm not sure of this... you can ask to teodor, whats is the method of the parameters passing.

 

Bye...

 

PD: If this works, tell me.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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...