efebo_abel Posted September 18, 2006 Share Posted September 18, 2006 i have a report with a simple crosstab, nothing out of ordinary, and i added two parameter to the SubDataSet, i use those parameter in the subdataset query, ireport doesnt prompt me to enter any value to those parameter!!!, what can i do ? ]http://www.jasperforge.org/components/com_joomlaboard/uploaded/images/bart.jpg Link to comment Share on other sites More sharing options...
lucianc Posted September 19, 2006 Share Posted September 19, 2006 You need to add the same parameters in the report, and then use <datasetParameter> to send the values for the subdataset parameters. HTH,Lucian Link to comment Share on other sites More sharing options...
p1bergman Posted October 10, 2006 Share Posted October 10, 2006 Can you elaborate on this a bit more. I am very new to Ireports and am in the exact same situation. Link to comment Share on other sites More sharing options...
lucianc Posted October 11, 2006 Share Posted October 11, 2006 Not sure what to elaborate on, but here it goes: If you want to have a parameter in a subdataset and pass a value for the parameter in iReport, you need to define the same parameter in the report and pass the same value to the subdataset parameter:Code:<datasetRun subDataset=".."> <datasetParameter name="ParamName"> <datasetParameterExpression><![CDATA[$P{ParamName}]]></datasetParameterExpression> </datasetParameter></datasetRun> I think that in iReport you can do this in the crosstab properties dialog, in the "Dataset run" group. HTH,Lucian 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