From 3d106abfcf069a43d3d3f4df750cf9a3c5889df3 Mon Sep 17 00:00:00 2001 From: Lam Voong Date: Fri, 22 Jul 2016 12:03:17 -0700 Subject: [PATCH] Add When No Data band; update query to allow for 0 records returned. --- .../src/main/resources/coreLoanIn.jrxml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/services/report/3rdparty/jasper-cs-report/src/main/resources/coreLoanIn.jrxml b/services/report/3rdparty/jasper-cs-report/src/main/resources/coreLoanIn.jrxml index 220b14ae4..e7b5454aa 100644 --- a/services/report/3rdparty/jasper-cs-report/src/main/resources/coreLoanIn.jrxml +++ b/services/report/3rdparty/jasper-cs-report/src/main/resources/coreLoanIn.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 In.' else '' end AS description, case when (oppp.objectproductionpeople is not null and oppp.objectproductionpeople <> '') then @@ -51,7 +50,9 @@ left outer join hierarchy h4 on (co.id=h4.parentid and h4.pos=0 and h4.name='col left outer join objectproductionpeoplegroup oppp on (oppp.id=h4.id) left outer join hierarchy hlgl on (lic.id=hlgl.parentid and hlgl.pos=0 and hlgl.name='loansin_common:lenderGroupList') left outer join lendergroup lg on (lg.id=hlgl.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]]> @@ -284,4 +285,15 @@ ORDER BY objectnumber]]> + + + + + + + + + + + -- 2.47.3