Jump to content
We've recently updated our Privacy Statement, available here ×

micmayers_i

Members
  • Posts

    2
  • Joined

  • Last visited

micmayers_i's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. Hy dosen´t works with the part "[@id=$P{param}]" doesen´t matter which settings I tried in the parameter Tab (under drop down box "Sub dataset"). Mayby you can tell me a bit more explicite how to set the parameter for the dataSourceExpression. Thanks mic Post Edited by micmayers_i at 05/25/2011 10:44 Post Edited by micmayers_i at 05/25/2011 10:45
  2. Hello I´ve found following code for using subDataset in Charts. This Code is working without the parameter. My Question now is, how to pass the parameter to the JRXmlDataSource. Thanks very much mic Code:<lineChart><chart>...</chart><categoryDataset><dataset> <datasetRun subDataset="Parameter"> <datasetParameter name="param"> <datasetParameterExpression></datasetParameterExpression> </datasetParameter> <dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRXmlDataSource(new java.io.File("C:\\test.xml"), "/test[@id='$P{param}']/tested")]]> </dataSourceExpression> </datasetRun></dataset>
×
×
  • Create New...