Jump to content
JasperReports Library 7.0 is now available ×

Crosstab parameter not prompted


efebo_abel

Recommended Posts

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

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

  • 3 weeks later...

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

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