java - Jasper Reports: do not render main report when subreports have no data -



java - Jasper Reports: do not render main report when subreports have no data -

situation have study consists of header , 4 subreports in detail area. subreports info querying database.

requirement if subreports have no data, main study not generate - similar property "when no data" set "no pages".

problem each subreport has property "remove line when blank" checked each subreport print if has data. in main report, query text "select 1 dual" print. want alter dependent on subreports, if subreports have no data, homecoming nil , hence whole study not print due "when no data" beingness set "no pages".

there should way set print when look main study check subreports data, , show main study if @ to the lowest degree 1 of them does. like:

if (subreport1hasdata || subreport2hasdata || subreport3hasdata || subreport4hasdata)

java jasper-reports

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -