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

Using a parameter to determine data source.


majst2005

Recommended Posts

I found this article http://community.jaspersoft.com/wiki/multiple-datasources-ireport-lists-tables-and-subreports that details how to use a seperate data source for a list or table element.  This works great in iReport, however, when I load the report into the server repository and run the report in iReport, I recieve the following error:

 java.lang.Exception: 1 - Error evaluating expression : 

    Source text : $P{connection} 
    at com.jaspersoft.ireport.jasperserver.ws.WSClient.runReport(WSClient.java:403) 
    at com.jaspersoft.ireport.jasperserver.ws.WSClient.runReport(WSClient.java:320) 
    at com.jaspersoft.ireport.jasperserver.ReportRunner.run(ReportRunner.java:70) 
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572) 
    at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997) 

$P{connection} is the parameter I am using to insert the new connection.  When I placed the report in the repository, I set up an input control with a single select list of values, with the value being the connection string.

Link to comment
Share on other sites

  • 1 year later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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