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

Using external query in report


cgriefer

Recommended Posts

I've created a query that I'd like to be able to re-use throughout different reports. 

Inside the report folder, I've got the JRXML file, some input controls, and a reference to the external query. 

So the hierarchy looks like:

- ACT (folder)
   - Activity Report: ACT (report folder)
      - activity_report (jrxml file)
      - consolidated_report_query (a predefined query)
      - start date (an input control) 
      - end date (an input control)

In spite of a good amount of googling, I can't figure out how to reference that `consolidated_report_query` in the jrxml. 

Any help would be _greatly_ appreciated.

 

 

Link to comment
Share on other sites

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hey Mariano:

Thank you for the reply!

I think I've got that... but what I'm trying to do is call the query after specific user input. 

I had plain old SQL in the jrxml (with certain $P{Params} based on user input) that ran after the user chose a few values. 

If I like the query as I already did, how to I tell the jrxml file not to run it until the user input is received?

I assumed I'd just place some sort of variable that points to the query in the jrxml where I previously had the SQL written out. 

Hope that makes sense?

Thanks!
Charlie

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