dheerajsea123 Posted February 24, 2010 Share Posted February 24, 2010 Hi,I have a main report which has one query that will retrun some fields value and i hav a one subreport where i want to pass this value as a parameter, is it possible how to do this, than please tell me any one has any idea?Thanks Link to comment Share on other sites More sharing options...
pintusingha Posted February 24, 2010 Share Posted February 24, 2010 Hi dheerajsea123,Yup its possible....Step1:Click on the subreport icon in the main report and go to its propertiesStep2: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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now