From: Lam Voong Date: Fri, 22 Jul 2016 17:56:21 +0000 (-0700) Subject: Add When No Data band; update query to allow for 0 records returned. X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=771a59fa0ed16198276d141686ac03a4625e5365;p=tmp%2Fjakarta-migration.git Add When No Data band; update query to allow for 0 records returned. --- diff --git a/services/report/3rdparty/jasper-cs-report/src/main/resources/coreGroupObject.jrxml b/services/report/3rdparty/jasper-cs-report/src/main/resources/coreGroupObject.jrxml index 355cedd8a..398666745 100644 --- a/services/report/3rdparty/jasper-cs-report/src/main/resources/coreGroupObject.jrxml +++ b/services/report/3rdparty/jasper-cs-report/src/main/resources/coreGroupObject.jrxml @@ -1,5 +1,5 @@ - + @@ -27,7 +27,6 @@ sd.datedisplaydate fieldCollectionDate, ong.objectName objectName, case when (bd.item is not null and bd.item <> '') then regexp_replace(bd.item, '^.*\)''(.*)''$', '\1') - when co.objectnumber is null then 'No objects are related to this Group.' else '' end AS description FROM hierarchy h1 @@ -40,7 +39,9 @@ LEFT OUTER JOIN objectnamegroup ong ON (ong.id=h3.id) LEFT OUTER JOIN collectionobjects_common_briefdescriptions bd ON (bd.id=co.id and bd.pos=0) left outer join hierarchy h4 on (h2.id = h4.parentid and h4.name = 'collectionobjects_common:fieldCollectionDateGroup') left outer join structureddategroup sd on (h4.id = sd.id) -where h1.name = $P{csid} +LEFT OUTER JOIN misc m ON (m.id = co.id) +WHERE m.lifecyclestate != 'deleted' +AND h1.name = $P{csid} order by objectNumber]]> @@ -268,4 +269,15 @@ order by objectNumber]]> + + + + + + + + + + +