From: Lam Voong Date: Fri, 22 Jul 2016 19:16:13 +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=14cf407caacf67c32fe9495cc663d9aa8d334e39;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/coreLoanOut.jrxml b/services/report/3rdparty/jasper-cs-report/src/main/resources/coreLoanOut.jrxml index 468ec904c..a96ad2661 100644 --- a/services/report/3rdparty/jasper-cs-report/src/main/resources/coreLoanOut.jrxml +++ b/services/report/3rdparty/jasper-cs-report/src/main/resources/coreLoanOut.jrxml @@ -1,5 +1,5 @@ - + @@ -32,7 +32,6 @@ end AS site, ong.objectName AS "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 Loan Out.' else '' end AS description, case when (oppp.objectproductionpeople is not null and oppp.objectproductionpeople <> '') then @@ -49,7 +48,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 (co.id=h4.parentid and h4.pos=0 and h4.name='collectionobjects_common:objectProductionPeopleGroupList') left outer join objectproductionpeoplegroup oppp on (oppp.id=h4.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]]> @@ -282,4 +283,15 @@ ORDER BY objectnumber]]> + + + + + + + + + + +