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

Parameter with Query


pferban

Recommended Posts

Hi,

I'm new in JasperReports and now i'm working wiht parameters. Can I do a parameter with a Select?

I need a parameter with the result of Query Custumer, and when I select a Customer only print a report with sale of this customer.

Thanks

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Yes, you can use Ireport parameters within a SELECT statement...here's an example

 

Ireport parameter is CUST_NO

 

select

cust_name,

cust_sales

 

from

cust_db

 

where

cust_no = $P{CUST_NO}

 

 

Pretty simple stuff, but this should get you started.

 

David

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