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

How can I use a parmeter to define the where clause of my report?


tinagoepp

Recommended Posts

Hello together,

 

I've got a question I'd like to create a report where I could type in the ID at first (Parameter) and then the report appears. All values of the report depend on the ID.  

 

Is this possible and how could I implement this?

 

Thank you for your help!

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Hi Tina,

below is the sample where clause that should like in your sql. Here ID is your database column, P_ID is the parameter name

where ID = $P{P_ID}. Then go to parameters tab, create a new parameter of data type either string or number and enable (check) the prompt button.

That's it. Run the report and see how it works now

 

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