From 20a27193e957baee378d0330d314cbadb22504f2 Mon Sep 17 00:00:00 2001 From: Lam Voong Date: Fri, 22 Jul 2016 12:00:58 -0700 Subject: [PATCH] Add When No Data band; update query to allow for 0 records returned. --- .../src/main/resources/coreIntake.jrxml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/services/report/3rdparty/jasper-cs-report/src/main/resources/coreIntake.jrxml b/services/report/3rdparty/jasper-cs-report/src/main/resources/coreIntake.jrxml index 1db394da2..e185cc32b 100644 --- a/services/report/3rdparty/jasper-cs-report/src/main/resources/coreIntake.jrxml +++ b/services/report/3rdparty/jasper-cs-report/src/main/resources/coreIntake.jrxml @@ -1,5 +1,5 @@ - + @@ -28,7 +28,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 Intake.' else '' end AS description, case when (oppp.objectproductionpeople is not null and oppp.objectproductionpeople <> '') then @@ -45,7 +44,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]]> @@ -263,4 +264,15 @@ ORDER BY objectnumber]]> + + + + + + + + + + + -- 2.47.3