cpscdave Posted November 26, 2008 Share Posted November 26, 2008 We have a live and devel version of a system thats intergrating with JasperServer. Thusly we would like to be able to call the reports using either the devel database or the live databases with out having to have 2 versions of the report in JasperServer.How can this be accomplished? I tried adding a parameter to sepecify the database in the sql query egSELECT * FROM $P{DB}.table1 but it looks like its making the sql SELECT * FROM 'live_db'. and throws errors. How can we get this to work???Thanks Link to comment Share on other sites More sharing options...
cpscdave Posted November 26, 2008 Author Share Posted November 26, 2008 figured it outby using$!P(DB) it outputs live_dbif you use$P{DB} it outputs 'live_db' Post Edited by David Robertson at 11/26/08 23:23 Link to comment Share on other sites More sharing options...
halfer Posted December 19, 2008 Share Posted December 19, 2008 If you want to call reports using an arbitrary connection, this is not supported directly in JasperServer at present. However I discovered a fairly elegant workaround that you may be interested in. 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