Jump to content
We've recently updated our Privacy Statement, available here ×

switching across subreport


fgar

Recommended Posts

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

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...