Jump to content

problem in passing parameter


dheerajsea123

Recommended Posts

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Hi dheerajsea123,

Yup its possible....

Step1:Click on the subreport  icon in the main report and go to its properties

Step2:U will see a tab call "Parameters"probably at the end(Coz m using ireport-3.7.1,for earlier versions just look for "Parameters" tab in the subreport properties)

Step3:Now click on the ADD button and in the "value expression " assigned the field that u wanna pass to the subreport and in the "Subreport Parameter name" just type the name of the field.

Step4:Now go the subreport template and create a new parameter with the same name that u have assigned in the "Subreport Parameter name".Thats how u pass field to a subreport.

Hope ur problem is solved

*U can even return values from the subreport to the main report and vice-versa.

 

Cheers!!!

 

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