[icinga-checkins] icinga.org: icinga-reports/mluebben/r1.5: Fix Bug in Log Entries Report

git at icinga.org git at icinga.org
Wed Aug 17 16:07:55 CEST 2011


Module: icinga-reports
Branch: mluebben/r1.5
Commit: 76fa7d6de1375fb8499f61db2fe6797e42665f15
URL:    https://git.icinga.org/?p=icinga-reports.git;a=commit;h=76fa7d6de1375fb8499f61db2fe6797e42665f15

Author: Michael Luebben <mluebben at destiny.(none)>
Date:   Wed Aug 17 15:50:49 2011 +0200

Fix Bug in Log Entries Report

---

 .../templates/main/other/logentries.jrxml          |   22 ++++++++++----------
 1 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/jasperreports/templates/main/other/logentries.jrxml b/jasperreports/templates/main/other/logentries.jrxml
index 8c6bc4d..d2a59c1 100644
--- a/jasperreports/templates/main/other/logentries.jrxml
+++ b/jasperreports/templates/main/other/logentries.jrxml
@@ -2,7 +2,7 @@
 <jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="Host in given time" language="groovy" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" isTitleNewPage="true">
 	<property name="ireport.zoom" value="1.3310000000000004"/>
 	<property name="ireport.x" value="0"/>
-	<property name="ireport.y" value="514"/>
+	<property name="ireport.y" value="523"/>
 	<template><![CDATA["repo:/Icinga/styles/IcingaStyleBase.jrtx"]]></template>
 	<parameter name="SUBREPORT_DIR" class="java.lang.String" isForPrompting="false">
 		<defaultValueExpression><![CDATA["repo:/icinga/templates/sub/"]]></defaultValueExpression>
@@ -24,7 +24,7 @@
 		<band height="660">
 			<image>
 				<reportElement x="0" y="0" width="555" height="202"/>
-				<imageExpression class="java.lang.String"><![CDATA["repo:/Icinga/images/icinga_background.png"]]></imageExpression>
+				<imageExpression><![CDATA["repo:/Icinga/images/icinga_background.png"]]></imageExpression>
 			</image>
 			<rectangle radius="5">
 				<reportElement x="81" y="162" width="3" height="400" forecolor="#000000" backcolor="#666666"/>
@@ -68,7 +68,7 @@
 			</staticText>
 			<image>
 				<reportElement x="0" y="45" width="250" height="91"/>
-				<imageExpression class="java.lang.String"><![CDATA["repo:/Icinga/images/icinga_logo_big.png"]]></imageExpression>
+				<imageExpression><![CDATA["repo:/Icinga/images/icinga_logo_big.png"]]></imageExpression>
 			</image>
 			<rectangle radius="2">
 				<reportElement x="110" y="347" width="132" height="20" backcolor="#DCDCDC"/>
@@ -95,7 +95,7 @@
 			<textField pattern="dd/MM/yyyy h.mm a">
 				<reportElement style="Cover" x="250" y="367" width="213" height="20"/>
 				<textElement verticalAlignment="Middle"/>
-				<textFieldExpression class="java.util.Date"><![CDATA[new java.util.Date()]]></textFieldExpression>
+				<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
 			</textField>
 			<rectangle radius="2">
 				<reportElement x="110" y="190" width="330" height="25" backcolor="#EA9F1B"/>
@@ -115,7 +115,7 @@
 				<textElement textAlignment="Left" verticalAlignment="Middle">
 					<font isBold="true"/>
 				</textElement>
-				<textFieldExpression class="java.lang.String"><![CDATA[$P{p_weekday_start} + " to " + $P{p_weekday_end} + " / " + $P{p_time_start} + " - " + $P{p_time_end}]]></textFieldExpression>
+				<textFieldExpression><![CDATA[$P{p_weekday_start} + " to " + $P{p_weekday_end} + " / " + $P{p_time_start} + " - " + $P{p_time_end}]]></textFieldExpression>
 			</textField>
 		</band>
 	</title>
@@ -123,7 +123,7 @@
 		<band height="37" splitType="Stretch">
 			<image>
 				<reportElement x="461" y="0" width="94" height="35"/>
-				<imageExpression class="java.lang.String"><![CDATA["repo:/Icinga/images/icinga_logo_small.png"]]></imageExpression>
+				<imageExpression><![CDATA["repo:/Icinga/images/icinga_logo_small.png"]]></imageExpression>
 			</image>
 			<rectangle radius="3">
 				<reportElement x="0" y="0" width="300" height="35" backcolor="#FAFADC"/>
@@ -149,7 +149,7 @@
 				<textElement textAlignment="Left" verticalAlignment="Middle">
 					<font size="8" isBold="false"/>
 				</textElement>
-				<textFieldExpression class="java.lang.String"><![CDATA[$P{p_weekday_start} + " to " + $P{p_weekday_end} + " / " + $P{p_time_start} + " - " + $P{p_time_end}]]></textFieldExpression>
+				<textFieldExpression><![CDATA[$P{p_weekday_start} + " to " + $P{p_weekday_end} + " / " + $P{p_time_start} + " - " + $P{p_time_end}]]></textFieldExpression>
 			</textField>
 		</band>
 	</pageHeader>
@@ -176,7 +176,7 @@
 					<subreportParameterExpression><![CDATA[$P{p_time_start}]]></subreportParameterExpression>
 				</subreportParameter>
 				<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
-				<subreportExpression class="java.lang.String"><![CDATA["repo:/bits/templates/subreports/logentries"]]></subreportExpression>
+				<subreportExpression><![CDATA[$P{SUBREPORT_DIR} + "object/logentries"]]></subreportExpression>
 			</subreport>
 		</band>
 	</detail>
@@ -188,12 +188,12 @@
 			<textField>
 				<reportElement style="Footer" x="435" y="2" width="80" height="30"/>
 				<textElement textAlignment="Right"/>
-				<textFieldExpression class="java.lang.String"><![CDATA["Page "+$V{PAGE_NUMBER}+" of"]]></textFieldExpression>
+				<textFieldExpression><![CDATA["Page "+$V{PAGE_NUMBER}+" of"]]></textFieldExpression>
 			</textField>
 			<textField evaluationTime="Report">
 				<reportElement style="Footer" x="515" y="2" width="40" height="30"/>
 				<textElement/>
-				<textFieldExpression class="java.lang.String"><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
+				<textFieldExpression><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
 			</textField>
 			<rectangle radius="0">
 				<reportElement x="0" y="0" width="555" height="2" forecolor="#000000" backcolor="#666666"/>
@@ -207,7 +207,7 @@
 					<subreportParameterExpression><![CDATA[$P{SUBREPORT_DIR}]]></subreportParameterExpression>
 				</subreportParameter>
 				<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
-				<subreportExpression class="java.lang.String"><![CDATA[$P{SUBREPORT_DIR} + "page/footer"]]></subreportExpression>
+				<subreportExpression><![CDATA[$P{SUBREPORT_DIR} + "page/footer"]]></subreportExpression>
 			</subreport>
 		</band>
 	</pageFooter>





More information about the icinga-checkins mailing list