cdeal Posted November 28, 2007 Share Posted November 28, 2007 Many of our reports show the report criteria that was used to generate/customize the report. However, most of the time, this information is an ID instead of useful text. We normally show a field from the resultset in the header to represent the parameters used by the report, but when the report contains no data, those fields aren't available either; therefore, they show up blank in the output. We thought that we could correct this problem be sending in the parameter text along with the parameter id (two separate parms) but the report will not show the parmeters when there is no data either. The only way that I have found, is to wrap the parameter with a variable that has it's initial value set to the param value. This seems like a lot of extra effort. We are using JR 2.0.2 and I believe that it happened with JR 1.2.4. We already use "All Sections No Detail". Why doesn't the report display fields that contain PARAMETER values when there is no data when it WILL display a VARIABLE in the same case? Is there some setting? Does it make sense to do this? Is my work around the only way to accomplish this? Chuck Link to comment Share on other sites More sharing options...
lucianc Posted November 28, 2007 Share Posted November 28, 2007 Do you have a simple example to replicate such behaviour? Regards,Lucian Link to comment Share on other sites More sharing options...
cdeal Posted November 28, 2007 Author Share Posted November 28, 2007 I couldn't believe that it didn't work as I expected, so I went back over the code (not that I hadn't been trying off and on for the past couple of days now...). The dev who originally wrote the report had a PrintWhenExpression on the field that was turning it off. So, this one is COMPLETELY operator error. Sorry about that. Chuck 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