fgar Posted February 14, 2009 Share Posted February 14, 2009 Hi all,i have report that is composed by one master it contain one subreport.In some situation expecially when the subreport (that execute one simple query) return no row i dont' see anything about the subreport.. my objective is to display something such "no data available"... so i have think to use the subreport expression usinh the return value REPORT_COUNT assign to a variable , and based on the return value do something like this..$V(myreturnvalue)=0 ? "repo:showreportnodata.jrxml" : "repo:shownormalreport.jrxml"...this is my idea... Trying different expression i have see that when i have no data my variable is not 0 but is null...So i have change the expression but with no success...There is someone that know some kind of solution or tips to obtain that Link to comment Share on other sites More sharing options...
Gaby38 Posted February 14, 2009 Share Posted February 14, 2009 Why don't you use the "nodata" band of the subreport? I already tested that in a main report : I put a static text in the nodata band and I changed the default configuration of the report for the behaviour when no data found. I presume that if you do the same in your sub-report, it would work but I never tested. HTH Gaby Link to comment Share on other sites More sharing options...
fgar Posted February 16, 2009 Author Share Posted February 16, 2009 thx for the tips ..it's ok it work! 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