gr4nt4 Posted April 22, 2008 Share Posted April 22, 2008 Hi All I passing in a parameter that is used to switch between sub reports I have been able to achieve this in ireports IDE but when run on the server it does not switch correctly code used to switch the sub report in the sub reports expression $P{DeviceTypeID}=="1"?$R{rpt.sub.subname1}: $R{rpt.sub.subname2) + ".jasper" any thoughts? Link to comment Share on other sites More sharing options...
Pedja Posted April 22, 2008 Share Posted April 22, 2008 Maybe this won't help, but when you compare Strings you should use equals() or equalsIgnoreCase() methods $P{DeviceTypeID}.equals("1") Link to comment Share on other sites More sharing options...
gr4nt4 Posted April 22, 2008 Author Share Posted April 22, 2008 Spot on , it works fine now, many thanks 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