hussainian Posted December 17, 2009 Share Posted December 17, 2009 Hi!I'm currently converting Oracle Reports to JasperReports. I want to know whether certain things done in oracle reports are possible in JasperReports or not.e.g. Three fields are being fetched from the database. Now on the bases of one first field, the other two are added or subtracted. I tried to do this thing in JasperReports using Ternary Operator in variable but got lot of errors, most of them comprising of casting issues and mathematical operations etc. Can anyone please guide me in this regard? Also is it possible to execute a SELECT query in any variable as it is done in Oracle Reports?Thanks & Best Regards.AsadULLAH.Post Edited by hussainian at 17/12/2009 10:32Post Edited by hussainian at 17/12/2009 10:33 Link to comment Share on other sites More sharing options...
lucianc Posted December 22, 2009 Share Posted December 22, 2009 JasperReports uses Java expressions by default. You can switch to Groovy which has a simpler syntax (or enable Java 5 syntax).JR variables cannot directly be assigned queries, but you can do the same thing using scriptlets.Regards,Lucian 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