manshack_one Posted January 26, 2011 Share Posted January 26, 2011 How do you pass a report connection to a scriptlet? I need to do some custom queries based off the report parameters which means writing a scriptlet. The example shows overriding the events but only grabs a system time to play with. How do I write the connection to the database so I can run some queries and properly format the results? Link to comment Share on other sites More sharing options...
manshack_one Posted January 27, 2011 Author Share Posted January 27, 2011 bump Link to comment Share on other sites More sharing options...
manshack_one Posted January 27, 2011 Author Share Posted January 27, 2011 conn = (Connection)(this.getParameterValue(JRFillParameter.REPORT_CONNECTION)); Figured it out. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now