The query in the jrxml file does not work - query-string

I am trying to create reports using JasperReports, but anytime i run the scrip it always reurns an error stating that Invalid content was found starting with element 'queryString', I'm guessing i did not arrange the query in the queryString element
here is the jrxml code
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN"
"http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">
<jasperReport name="staff">
<field name="staffId" class="java.lang.String"/>
<field name="firstName" class="java.lang.String"/>
<field name="lastName" class="java.lang.String"/>
<field name="email" class="java.lang.String"/>
<field name="password" class="java.lang.String"/>
<queryString><![CDATA[select * from staff]]>
</queryString>
<pageHeader>
<band height="30">
<staticText>
<reportElement x="0" y="0" width="69" height="24"/>
<textElement verticalAlignment="Bottom"/>
<text>
<![CDATA[Staff ID: ]]>
</text>
</staticText>
<staticText>
<reportElement x="140" y="0" width="69" height="24"/>
<text>
<![CDATA[First Name: ]]>
</text>
</staticText>
<staticText>
<reportElement x="280" y="0" width="69" height="24"/>
<text>
<![CDATA[Last Name: ]]>
</text>
</staticText>
<staticText>
<reportElement x="420" y="0" width="69" height="24"/>
<text>
<![CDATA[Email: ]]>
</text>
</staticText>
<staticText>
<reportElement x="420" y="0" width="69" height="24"/>
<text>
<![CDATA[Password: ]]>
</text>
</staticText>
</band>
</pageHeader>
<detail>
<band height="30">
<textField>
<reportElement x="0" y="0" width="69" height="24"/>
<textFieldExpression class="java.lang.String">
<![CDATA[$F{staffId}]]>
</textFieldExpression>
</textField>
<textField>
<reportElement x="140" y="0" width="69" height="24"/>
<textFieldExpression class="java.lang.String">
<![CDATA[$F{firstName}]]>
</textFieldExpression>
</textField>
<textField>
<reportElement x="280" y="0" width="69" height="24"/>
<textFieldExpression class="java.lang.String">
<![CDATA[$F{lastName}]]>
</textFieldExpression>
</textField>
<textField>
<reportElement x="420" y="0" width="69" height="24"/>
<textFieldExpression class="java.lang.String">
<![CDATA[$F{email}]]>
</textFieldExpression>
</textField>
<textField>
<reportElement x="420" y="0" width="69" height="24"/>
<textFieldExpression class="java.lang.String">
<![CDATA[$F{password}]]>
</textFieldExpression>
</textField>
</band>
</detail>
</jasperReport>
I then removed the Stringquery elemnt and the JasperViewer opend but had no content.

Please have a look Here
I created jrxml file with the help of ireports designer 4.8 and query is part of this file and same report file work with java code as well .

Related

Is it posible to animate color change without using color property in QML?

I have a QML component containing an Image{} object that has no "color: " property set, and the color is instead passed to "svg from string" function from a string type property, and is later used as the svg image's "fill" parameter. It looks like this:
property string color: "aliceblue"
I'm wondering if there's a way to animate the color change using ColorAnimation QML Type, because it targets the "color: " property of the object, and it's not used at all in my case. The format of the color doesn't matter as long as it's supported by XML. (could be #RRGGBBAA etc)
The ColorAnimation can be applied to any property, not necessary a color, for example, we can see the ColorAnimation being used on a text property:
import QtQuick
import QtQuick.Controls
Page {
Button {
anchors.centerIn: parent
ColorAnimation on text {
id: animation
from: "red"
to: "yellow"
duration: 1000
}
onClicked: animation.restart()
}
}
You can Try it Online!
In terms of recoloring an SVG, I always leverage from the icon property that can be found on many components, such as Button. The icon property has source, color, width and height. In the following example, we use icon.color to recolor a space invader:
import QtQuick
import QtQuick.Controls
Page {
IconButton {
anchors.centerIn: parent
height: 256
icon.source: "space-invader.svg"
ColorAnimation on icon.color {
id: animation
from: "red"
to: "yellow"
duration: 1000
}
onClicked: animation.restart()
}
}
// IconButton.qml
import QtQuick
import QtQuick.Controls
Item {
id: iconButton
width: height
height: 64
clip: true
property alias icon: btn.icon
property alias background: btn.background
signal clicked()
Button {
id: btn
anchors.centerIn: parent
background: Item { }
icon.width: parent.width
icon.height: parent.height
onClicked: iconButton.clicked()
}
}
// space-invader.svg
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<rect x="4" y="4" width="1" height="1"/>
<rect x="10" y="4" width="1" height="1"/>
<rect x="5" y="5" width="1" height="1"/>
<rect x="9" y="5" width="1" height="1"/>
<rect x="4" y="6" width="7" height="1"/>
<rect x="3" y="7" width="2" height="1"/>
<rect x="6" y="7" width="3" height="1"/>
<rect x="10" y="7" width="2" height="1"/>
<rect x="2" y="8" width="11" height="1"/>
<rect x="2" y="9" width="1" height="1"/>
<rect x="4" y="9" width="7" height="1"/>
<rect x="12" y="9" width="1" height="1"/>
<rect x="2" y="10" width="1" height="1"/>
<rect x="4" y="10" width="1" height="1"/>
<rect x="10" y="10" width="1" height="1"/>
<rect x="12" y="10" width="1" height="1"/>
<rect x="5" y="11" width="2" height="1"/>
<rect x="8" y="11" width="2" height="1"/>
</svg>
You can Try it Online!
Another way to recolor an SVG, is through the use of data URI image:data/svg+xml, + svg_string so that you can generate a svg string on the fly, however, the way how this compiles causes flicker when used with ColorAnimation. In the following example we ColorAnimation on the color col property, but, we promptly type convert it to a string with col + "" when passing it to our getSvg() function. We make use of ES6 string interpolation to quickly embed this color into our target string.
import QtQuick
import QtQuick.Controls
Page {
Image {
anchors.centerIn: parent
property color col: "red"
width: 256
height: 256
sourceSize: Qt.size(width, height)
source: `data:image/svg+xml,` + getSvg(col + '')
ColorAnimation on col {
from: "red"
to: "yellow"
duration: 10000
}
}
function getSvg(col) {
return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<rect x="4" y="4" width="1" fill="${col}" height="1"/>
<rect x="10" y="4" width="1" fill="${col}" height="1"/>
<rect x="5" y="5" width="1" fill="${col}" height="1"/>
<rect x="9" y="5" width="1" fill="${col}" height="1"/>
<rect x="4" y="6" width="7" fill="${col}" height="1"/>
<rect x="3" y="7" width="2" fill="${col}" height="1"/>
<rect x="6" y="7" width="3" fill="${col}" height="1"/>
<rect x="10" y="7" width="2" fill="${col}" height="1"/>
<rect x="2" y="8" width="11" fill="${col}" height="1"/>
<rect x="2" y="9" width="1" fill="${col}" height="1"/>
<rect x="4" y="9" width="7" fill="${col}" height="1"/>
<rect x="12" y="9" width="1" fill="${col}" height="1"/>
<rect x="2" y="10" width="1" fill="${col}" height="1"/>
<rect x="4" y="10" width="1" fill="${col}" height="1"/>
<rect x="10" y="10" width="1" fill="${col}" height="1"/>
<rect x="12" y="10" width="1" fill="${col}" height="1"/>
<rect x="5" y="11" width="2" fill="${col}" height="1"/>
<rect x="8" y="11" width="2" fill="${col}" height="1"/>
</svg>`
}
}
You can Try it Online!

inline svg, if using switch, hml content of foreignobject in not displayed

Switch statement does not display the text.
If i use foreignobject without switch - it is working.
If i try to create a fallback to the foreignobject, svg is displayed in correct height and width, but without the text.
<svg class="txtOnImgSvg sport" viewBox="0 0 700 100" >
<foreignobject class="txtOnImgSvgFO sport" x="20" y="20" >
<div class="txtOnImgSvgFOdiv sport" >Sport : <br>50m simming pool on site, <br>Tennis court, <br>Fishing <br>Cycling <br>Diving.</div>
</foreignobject>
</svg>
<svg class="txtOnImgSvg sport" viewBox="0 0 700 100" >
<switch>
<foreignobject class="txtOnImgSvgFO sport" x="20" y="20" >
<div class="txtOnImgSvgFOdiv sport" >Sport : <br>50m simming pool on site, <br>Tennis court, <br>Fishing <br>Cycling <br>Diving.</div>
</foreignobject>
<text class="txtOnImgSvgTxt sport" x="20" y="20" >
<tspan x="20" y="20" class="navDescr" >Sport:</tspan>
<tspan x="20" y="100" class="navDescr" >50m simming pool</tspan>
<tspan x="20" y="100" class="navDescr" >tennis court</tspan>
<tspan x="20" y="180" class="navDescr" >fishing</tspan>
<tspan x="20" y="180" class="navDescr" >cycling</tspan>
<tspan x="20" y="180" class="navDescr" >diving</tspan>
</text>
</switch>
</svg>

Subreport wont Display in the Mainreport (Jasperreports)

iam very new to Jasperreports and actually i try to display a Subreport through my Mainreport. When i run them alone, both of them working correctly, but when i try to drag and drop a Supreport from the pallet and follow the wizard the Subreport wont display when i run the Mainreport. I try to figure out the problem since one week but nothing works for me.
this is the Mainreport XML:
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.3.0.final using JasperReports Library version 6.3.0 -->
<!-- 2017-05-15T13:46:24 -->
<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="Report_1" pageWidth="595" pageHeight="842" columnWidth="535" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="2f6e4db4-9f8f-4ffe-9759-6e1fd142f492">
<property name="template.type" value="columnar"/>
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="src/dataset1.xml"/>
<property name="net.sf.jasperreports.print.create.bookmarks" value="false"/>
<style name="Title" forecolor="#000000" fontName="Times New Roman" fontSize="50" isBold="false"/>
<style name="SubTitle" forecolor="#666666" fontName="Times New Roman" fontSize="18" isBold="false"/>
<style name="Column header" forecolor="#666666" fontName="Times New Roman" fontSize="14" isBold="true"/>
<style name="Detail" mode="Transparent" fontName="Times New Roman"/>
<style name="Row" mode="Transparent" fontName="Times New Roman" pdfFontName="Times-Roman">
<conditionalStyle>
<conditionExpression><![CDATA[$V{REPORT_COUNT}%2 == 0]]></conditionExpression>
<style mode="Opaque" backcolor="#F0EFEF"/>
</conditionalStyle>
</style>
<subDataset name="Dataset1" uuid="bcf9a7c3-f040-47c7-b8b0-ffdf33b6fd91">
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="src/dataset1.xml"/>
<queryString>
<![CDATA[]]>
</queryString>
</subDataset>
<queryString>
<![CDATA[]]>
</queryString>
<field name="reportName" class="java.lang.String">
<fieldDescription><![CDATA[reportName]]></fieldDescription>
</field>
<field name="workdirectory" class="java.lang.String">
<fieldDescription><![CDATA[workdirectory]]></fieldDescription>
</field>
<field name="konectorStatus" class="java.lang.String">
<fieldDescription><![CDATA[konectorStatus]]></fieldDescription>
</field>
<field name="connectionStatus" class="java.lang.String">
<fieldDescription><![CDATA[connectionStatus]]></fieldDescription>
</field>
<field name="stuckedCard" class="java.lang.String">
<fieldDescription><![CDATA[stuckedCard]]></fieldDescription>
</field>
<field name="description" class="java.lang.String">
<fieldDescription><![CDATA[description]]></fieldDescription>
</field>
<field name="testSteps" class="java.util.List">
<fieldDescription><![CDATA[testSteps]]></fieldDescription>
</field>
<field name="shortDescription" class="java.lang.String">
<fieldDescription><![CDATA[shortDescription]]></fieldDescription>
</field>
<field name="testResult" class="java.lang.String">
<fieldDescription><![CDATA[testResult]]></fieldDescription>
</field>
<field name="class" class="java.lang.Class">
<fieldDescription><![CDATA[class]]></fieldDescription>
</field>
<field name="authentication" class="java.lang.String">
<fieldDescription><![CDATA[authentication]]></fieldDescription>
</field>
<pageHeader>
<band height="81" splitType="Stretch">
<line>
<reportElement positionType="FixRelativeToBottom" x="0" y="70" width="551" height="1" uuid="dee835ad-ce13-4185-a455-2fc7cd2599d3"/>
</line>
<staticText>
<reportElement style="Title" x="0" y="0" width="400" height="30" uuid="ca49ecc2-99c4-466b-93f0-1e91dc52bb72"/>
<textElement>
<font size="16" isBold="false"/>
</textElement>
<text><![CDATA[Konnektorsimmulator Testfall Protokoll: ]]></text>
</staticText>
<image>
<reportElement x="400" y="-5" width="153" height="65" uuid="4846b814-11f5-4b15-8c3b-edf1de2288a1"/>
<imageExpression><![CDATA["/home/r4ff1/Dropbox/Arbeit/image.2UJ5YY.png"]]></imageExpression>
</image>
<textField>
<reportElement x="0" y="30" width="553" height="30" uuid="b457f83a-3553-49a9-9cec-fc01637f5192"/>
<textElement>
<font size="14" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{reportName}]]></textFieldExpression>
</textField>
</band>
</pageHeader>
<columnHeader>
<band splitType="Stretch"/>
</columnHeader>
<detail>
<band height="468" splitType="Stretch">
<textField>
<reportElement x="100" y="7" width="453" height="30" uuid="8f7f0d01-07c8-41ae-af38-c6176d26bde1"/>
<textElement>
<font size="12" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{reportName}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="0" y="7" width="100" height="30" uuid="8336a307-e230-47e7-b1e7-a7c087dd67b5"/>
<text><![CDATA[Name]]></text>
</staticText>
<textField>
<reportElement x="100" y="37" width="453" height="33" uuid="bebc9514-dc72-4da9-84fd-bdb22e82bec0"/>
<textFieldExpression><![CDATA[$F{shortDescription}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="2" y="37" width="100" height="30" uuid="7fec7ae1-18d5-4ae5-87d0-bbc3ac0f5828"/>
<text><![CDATA[Kurzbeschreibung:]]></text>
</staticText>
<textField>
<reportElement x="102" y="70" width="449" height="40" uuid="822b3688-6187-4bb9-95fd-14fb63be4dbe"/>
<textFieldExpression><![CDATA[$F{description}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="2" y="70" width="100" height="30" uuid="4bf8f337-b139-424c-a90e-3340688edace"/>
<text><![CDATA[Beschreibung:]]></text>
</staticText>
<staticText>
<reportElement x="0" y="121" width="100" height="30" uuid="21780a8f-dd43-47b3-aa45-d1a54f0641ce"/>
<text><![CDATA[Eingangsdaten: ]]></text>
</staticText>
<textField>
<reportElement x="200" y="120" width="353" height="31" uuid="658e2f24-3dd0-4f3b-8eda-a252ba28b01f"/>
<textFieldExpression><![CDATA[$F{konectorStatus}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="100" y="120" width="100" height="30" uuid="f6406ac6-26cf-40da-8252-41453c65d981"/>
<text><![CDATA[Konnektor Status: ]]></text>
</staticText>
<textField>
<reportElement x="200" y="150" width="351" height="30" uuid="f70adee8-c72a-40d6-a098-4d0238e05bb2"/>
<textFieldExpression><![CDATA[$F{connectionStatus}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="100" y="150" width="100" height="30" uuid="11dd9b77-4c93-4511-b921-ccce6e909d9e"/>
<text><![CDATA[Verbindungsstatus: ]]></text>
</staticText>
<textField>
<reportElement x="200" y="180" width="351" height="30" uuid="a7797ecd-5f75-4cb2-bb28-0b3f64013e14"/>
<textFieldExpression><![CDATA[$F{authentication}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="100" y="180" width="100" height="30" uuid="eebc28e8-2029-4022-9cb0-8e77f858528c"/>
<text><![CDATA[Authentifizierung: ]]></text>
</staticText>
<textField>
<reportElement x="200" y="210" width="351" height="30" uuid="b0918e89-10fb-4874-9d23-002921d43ae0"/>
<textFieldExpression><![CDATA[$F{workdirectory}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="100" y="210" width="100" height="30" uuid="d2ad59b8-5a55-499d-96d7-31b8cc8d2c63"/>
<text><![CDATA[Dienstverzeichnis]]></text>
</staticText>
<textField>
<reportElement x="390" y="240" width="161" height="30" uuid="28604659-6643-4db1-ba85-f59d4a456fd0"/>
<textFieldExpression><![CDATA[$F{stuckedCard}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="102" y="240" width="288" height="30" uuid="158c9fe5-035b-41ea-80ac-7024f427861f"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Gesteckte Karten(Mandat > Terminal < Karte): ]]></text>
</staticText>
<line>
<reportElement positionType="FixRelativeToBottom" x="2" y="280" width="551" height="1" uuid="49e79677-a0a1-4116-bc6c-b975aff6e535"/>
</line>
<staticText>
<reportElement x="0" y="290" width="278" height="20" uuid="06dc0bc1-cd12-443b-a022-787e42319171"/>
<textElement>
<font size="14" isBold="true"/>
</textElement>
<text><![CDATA[Schritt1: Karte Stecken
]]></text>
</staticText>
<staticText>
<reportElement x="0" y="310" width="551" height="40" uuid="d7663160-f2c1-4340-ae38-d5a10405a343"/>
<text><![CDATA[Das Primärsystem führt beim ersten Stecken der Karte im Quartal automatisch eine online-Prüfung und Aktualisierung der eGK durch.]]></text>
</staticText>
<staticText>
<reportElement x="0" y="350" width="288" height="30" uuid="9c4d4fe2-f29f-49c2-ae5a-9ee11aa32f06"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Gesteckte Karten(Mandat > Terminal < Karte): ]]></text>
</staticText>
<textField>
<reportElement x="290" y="350" width="263" height="30" uuid="374ced41-210a-46c8-90ad-4462f3dd0f40"/>
<textFieldExpression><![CDATA[$F{stuckedCard}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="0" y="380" width="330" height="20" uuid="d3e9af6d-ac4e-4e28-b31d-79a4372017ec"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Prüfungsergebnis zu Schritt: ]]></text>
</staticText>
<textField>
<reportElement x="80" y="401" width="435" height="67" uuid="6c1ff3e6-e67d-40b4-b92f-235b2b5ecb4d"/>
<textFieldExpression><![CDATA[$F{testResult}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="0" y="400" width="100" height="30" uuid="a6c8dbc1-30b9-4b70-be48-993e27dc59c8"/>
<text><![CDATA[Testergebnise: ]]></text>
</staticText>
<staticText>
<reportElement x="0" y="430" width="100" height="30" uuid="0cc928fa-e11a-4842-9fdf-1bdbd245ae9a"/>
<text><![CDATA[testSteps]]></text>
</staticText>
<textField>
<reportElement x="80" y="430" width="467" height="30" uuid="02395e47-6859-4b19-b1a7-75bb4e8fcc7b"/>
<textFieldExpression><![CDATA[$F{testSteps}]]></textFieldExpression>
</textField>
<line>
<reportElement positionType="FixRelativeToBottom" x="1" y="467" width="551" height="1" uuid="5cfaaf0b-22ea-4406-aef0-7f1a8551bcde"/>
</line>
<line>
<reportElement positionType="FixRelativeToBottom" x="10" y="467" width="551" height="1" uuid="a4306707-5834-428b-a540-f46b52f43c28"/>
</line>
</band>
<band height="468">
<subreport overflowType="NoStretch">
<reportElement key="" x="30" y="40" width="450" height="222" uuid="123d247f-df6b-418e-802e-4d09eacccbea"/>
<subreportParameter name="Name ">
<subreportParameterExpression><![CDATA[$F{reportName}]]></subreportParameterExpression>
</subreportParameter>
<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
<subreportExpression><![CDATA["Subreport1.jasper"]]></subreportExpression>
</subreport>
</band>
</detail>
<columnFooter>
<band height="253" splitType="Stretch">
<frame>
<reportElement mode="Opaque" x="-20" y="240" width="555" height="13" forecolor="#D0B48E" backcolor="#9DB1B8" uuid="bfdca178-800d-445c-9a31-bb616a00e8ce"/>
<textField evaluationTime="Report">
<reportElement style="Column header" x="513" y="0" width="40" height="13" forecolor="#FFFFFF" uuid="2fba0f87-635e-476d-858f-d102b26146fe"/>
<textElement verticalAlignment="Middle">
<font size="10" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
<textField>
<reportElement style="Column header" mode="Transparent" x="433" y="0" width="80" height="13" forecolor="#FFFFFF" uuid="e454d23d-bcfc-4c79-a399-0ef520a3150a"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font size="10" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA["Page "+$V{PAGE_NUMBER}+" of"]]></textFieldExpression>
</textField>
<textField pattern="EEEEE dd MMMMM yyyy">
<reportElement style="Column header" x="2" y="0" width="197" height="13" forecolor="#FFFFFF" uuid="14d8de1e-8695-4078-a67f-0e69172574d5"/>
<textElement verticalAlignment="Middle">
<font size="10" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField>
</frame>
</band>
</columnFooter>
<summary>
<band height="802" splitType="Stretch">
<subreport overflowType="NoStretch">
<reportElement key="" style="Row" stretchType="ElementGroupBottom" x="30" y="40" width="450" height="222" uuid="90cb3729-2abe-4b9a-b5c7-541063f99b74"/>
<subreportParameter name="Name ">
<subreportParameterExpression><![CDATA[$F{reportName}]]></subreportParameterExpression>
</subreportParameter>
<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
<subreportExpression><![CDATA["Subreport1.jasper"]]></subreportExpression>
</subreport>
</band>
</summary>
</jasperReport>
And This is the Supreport XML:
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.3.0.final using JasperReports Library version 6.3.0 -->
<!-- 2017-05-15T13:48:15 -->
<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="Subreport1" pageWidth="595" pageHeight="842" whenNoDataType="AllSectionsNoDetail" columnWidth="535" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" whenResourceMissingType="Error" uuid="13acf49e-4913-4d1b-bccc-113817ad15d1">
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="src/dataset1.xml"/>
<style name="Title" forecolor="#FFFFFF" fontName="Times New Roman" fontSize="50" isBold="false"/>
<style name="SubTitle" forecolor="#CCCCCC" fontName="Times New Roman" fontSize="18" isBold="false"/>
<style name="Column header" forecolor="#666666" fontName="Times New Roman" fontSize="14" isBold="true"/>
<style name="Detail" mode="Transparent" fontName="Times New Roman"/>
<style name="Row" mode="Transparent" fontName="Times New Roman" pdfFontName="Times-Roman">
<conditionalStyle>
<conditionExpression><![CDATA[$V{REPORT_COUNT}%2 == 0]]></conditionExpression>
<style mode="Opaque" backcolor="#F0EFEF"/>
</conditionalStyle>
</style>
<parameter name="Name" class="java.lang.String"/>
<queryString>
<![CDATA[]]>
</queryString>
<field name="reportName" class="java.lang.String">
<fieldDescription><![CDATA[reportName]]></fieldDescription>
</field>
<field name="workdirectory" class="java.lang.String">
<fieldDescription><![CDATA[workdirectory]]></fieldDescription>
</field>
<field name="konectorStatus" class="java.lang.String">
<fieldDescription><![CDATA[konectorStatus]]></fieldDescription>
</field>
<field name="connectionStatus" class="java.lang.String">
<fieldDescription><![CDATA[connectionStatus]]></fieldDescription>
</field>
<field name="stuckedCard" class="java.lang.String">
<fieldDescription><![CDATA[stuckedCard]]></fieldDescription>
</field>
<field name="description" class="java.lang.String">
<fieldDescription><![CDATA[description]]></fieldDescription>
</field>
<field name="testSteps" class="java.util.List">
<fieldDescription><![CDATA[testSteps]]></fieldDescription>
</field>
<field name="shortDescription" class="java.lang.String">
<fieldDescription><![CDATA[shortDescription]]></fieldDescription>
</field>
<field name="testResult" class="java.lang.String">
<fieldDescription><![CDATA[testResult]]></fieldDescription>
</field>
<field name="class" class="java.lang.Class">
<fieldDescription><![CDATA[class]]></fieldDescription>
</field>
<field name="authentication" class="java.lang.String">
<fieldDescription><![CDATA[authentication]]></fieldDescription>
</field>
<background>
<band splitType="Stretch"/>
</background>
<pageHeader>
<band splitType="Stretch"/>
</pageHeader>
<detail>
<band height="352">
<line>
<reportElement positionType="FixRelativeToBottom" x="-20" y="110" width="551" height="1" uuid="b7dd4853-cf98-4e96-8388-f0ba3269ef57"/>
</line>
<line>
<reportElement positionType="FixRelativeToBottom" x="-20" y="211" width="551" height="1" uuid="dbabfe43-16ab-4c4f-9c86-73519692523a"/>
</line>
<staticText>
<reportElement x="0" y="20" width="288" height="30" uuid="6906ae91-f112-4073-ae81-9b27dcc2b72b"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Gesteckte Karten(Mandat > Terminal < Karte): ]]></text>
</staticText>
<staticText>
<reportElement x="0" y="0" width="278" height="20" uuid="42a1543f-f2ac-4a42-9331-b3eca5690b9c"/>
<textElement>
<font size="14" isBold="true"/>
</textElement>
<text><![CDATA[Schritt1: Karte Stecken
]]></text>
</staticText>
<staticText>
<reportElement x="0" y="80" width="180" height="20" uuid="ff671021-bef7-4cfa-b925-573a21971feb"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Prüfungsergebnis zu Schritt: ]]></text>
</staticText>
<staticText>
<reportElement x="0" y="178" width="100" height="30" uuid="84495cdb-5498-4622-ac32-082b8c142740"/>
<text><![CDATA[testSteps]]></text>
</staticText>
<staticText>
<reportElement x="0" y="110" width="100" height="30" uuid="67ae3d16-c288-4809-807a-2b5e0a0e474d"/>
<text><![CDATA[Testergebnise: ]]></text>
</staticText>
<textField>
<reportElement x="80" y="110" width="465" height="68" uuid="8cee8a00-83f5-49da-aff4-afc566f853fa"/>
<textFieldExpression><![CDATA[$F{testResult}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="80" y="182" width="465" height="30" uuid="6d909ecc-2828-40af-a40f-81a3d994db0c"/>
<textFieldExpression><![CDATA[$F{testSteps}]]></textFieldExpression>
</textField>
</band>
</detail>
<summary>
<band splitType="Stretch"/>
</summary>
</jasperReport>
I hope that somebody can help me with that....
Greetings: Raffaela
you are using an XML-File as datasource for both reports. For the subreport to show data you have to give it the exact datasource through the datasource expression instead of the connection expression. The subreport does not locate the xml file on your filesystem.
Go to the subreport properties and empty the field "Connection Expression". Then fill the Datasource Expression with
((net.sf.jasperreports.engine.data.JRXmlDataSource) $P{REPORT_DATA_SOURCE}).dataSource("//")
You seem to have an empty query string to your XML file so no xpath query string is needed. This solution should work for Jasperstudio 6.x.
Another solution could be to pass the $P{XML_DATA_DOCUMENT} parameter to the supreport using the parameters button.

Misalignment in jasper report

If the content in the report continue to the second page then there is a misalignment in bottom of first page.
Check Threshold/Interval field in first page of the report.The line not printed correctly at the bottom of the report.
I have tried Stretch type to 'Relative to Tallest Object' for all the column but it is not work.
Can someone help on this issue?
JRXML CODE
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.2.0.final using JasperReports Library version 6.2.0 -->
<!-- 2016-06-13T04:56:24 -->
<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="amp" language="groovy" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="AllSectionsNoDetail" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="eefb61f0-0add-423d-bbab-2899bb0dffcf">
<property name="ireport.zoom" value="1.5"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="0"/>
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="unselfishFerret"/>
<property name="com.jaspersoft.studio.data.sql.tables" value=""/>
<template><![CDATA[new ByteArrayInputStream($P{STYLE_SHEET}.getBytes())]]></template>
<parameter name="STYLE_SHEET" class="java.lang.String">
<defaultValueExpression><![CDATA[]]></defaultValueExpression>
</parameter>
<parameter name="REPORT_TIME" class="java.lang.String" isForPrompting="false">
<defaultValueExpression><![CDATA["1100"]]></defaultValueExpression>
</parameter>
<parameter name="FOOTER_STRING" class="java.lang.String">
<defaultValueExpression><![CDATA[]]></defaultValueExpression>
</parameter>
<parameter name="TITLE_STRING" class="java.lang.String"/>
<parameter name="PAGE_HEADER_STRING" class="java.lang.String"/>
<parameter name="SUB_FLEET_REPORT" class="java.lang.String">
<defaultValueExpression><![CDATA[]]></defaultValueExpression>
</parameter>
<parameter name="AIRCRAFT_REPORT" class="java.lang.String"/>
<parameter name="SAMPLE_FLEET_REPORT" class="java.lang.String"/>
<parameter name="OASES_OPTION" class="java.lang.String" isForPrompting="false"/>
<parameter name="OPERATOR_NAME" class="java.lang.String" isForPrompting="false"/>
<parameter name="FLEET" class="java.lang.String" isForPrompting="false">
<defaultValueExpression><![CDATA["A"]]></defaultValueExpression>
</parameter>
<parameter name="REVISION_ID" class="java.lang.String" isForPrompting="false">
<defaultValueExpression><![CDATA["441"]]></defaultValueExpression>
</parameter>
<parameter name="INCL_SUB_FLEET" class="java.lang.String"/>
<parameter name="INCL_SAMPLE_FLEET" class="java.lang.String"/>
<parameter name="INCL_AIRCRAFT" class="java.lang.String"/>
<parameter name="INCL_DIFF" class="java.lang.String"/>
<parameter name="INCL_PACKAGES" class="java.lang.String"/>
<parameter name="INCL_ACCESS_PANELS" class="java.lang.String"/>
<parameter name="INCL_MAN_HOURS" class="java.lang.String"/>
<parameter name="INCL_WORKCARD_NUMBER" class="java.lang.String"/>
<parameter name="WORKCARD_PROPERTIES" class="java.lang.String">
<defaultValueExpression><![CDATA[]]></defaultValueExpression>
</parameter>
<parameter name="PACKAGES_REPORT" class="java.lang.String"/>
<parameter name="DIFF_REVISION_ID" class="java.lang.String"/>
<parameter name="AMP_DIFFERENCE_REPORT" class="java.lang.String"/>
<parameter name="BLOCK_KEY" class="java.lang.String"/>
<parameter name="GROUP_WORKCARD_SECTIONS" class="java.lang.String">
<defaultValueExpression><![CDATA[]]></defaultValueExpression>
</parameter>
<parameter name="WORKCARD_SECTIONS" class="java.lang.String">
<defaultValueExpression><![CDATA[]]></defaultValueExpression>
</parameter>
<parameter name="INCL_WC_NOSECTION" class="java.lang.String">
<defaultValueExpression><![CDATA[]]></defaultValueExpression>
</parameter>
<parameter name="INCL_WORKCARD_PROPERTIES" class="java.lang.String">
<defaultValueExpression><![CDATA[]]></defaultValueExpression>
</parameter>
<parameter name="INCL_TRADE" class="java.lang.String">
<defaultValueExpression><![CDATA[]]></defaultValueExpression>
</parameter>
<parameter name="INCL_SKILL" class="java.lang.String">
<defaultValueExpression><![CDATA[]]></defaultValueExpression>
</parameter>
<parameter name="INCL_ZONE" class="java.lang.String"/>
<parameter name="INCL_SECTION_SUMMARY" class="java.lang.String">
<defaultValueExpression><![CDATA[]]></defaultValueExpression>
</parameter>
<parameter name="SECTION_REPORT" class="java.lang.String"/>
<parameter name="INCL_MEN" class="java.lang.String">
<defaultValueExpression><![CDATA[]]></defaultValueExpression>
</parameter>
<parameter name="INCL_SERIAL_LEVEL_CLL" class="java.lang.String">
<defaultValueExpression><![CDATA[]]></defaultValueExpression>
</parameter>
<parameter name="INCL_ADSB_INTERVALS" class="java.lang.String">
<defaultValueExpression><![CDATA[]]></defaultValueExpression>
</parameter>
<parameter name="DOCUMENT_CLASSES" class="java.lang.String">
<defaultValueExpression><![CDATA[]]></defaultValueExpression>
</parameter>
<parameter name="SUB_FLEET" class="java.lang.String">
<defaultValueExpression><![CDATA[]]></defaultValueExpression>
</parameter>
<parameter name="AIRCRAFT_CODE" class="java.lang.String">
<defaultValueExpression><![CDATA[]]></defaultValueExpression>
</parameter>
<parameter name="EFFECTIVE_CARDS_FILTER" class="java.lang.String">
<defaultValueExpression><![CDATA[]]></defaultValueExpression>
</parameter>
<parameter name="INCL_HIGH_THRESH" class="java.lang.String"/>
<parameter name="INCL_PACKAGE_SUMMARY" class="java.lang.String"/>
<queryString>
<![CDATA[SELECT * FROM TABLE(AMP_REPORT_PKG.GET_AMP_REPORT($P{FLEET}, $P{REVISION_ID}, $P{INCL_SUB_FLEET}, $P{INCL_SAMPLE_FLEET}, $P{INCL_AIRCRAFT}, $P{INCL_DIFF}, $P{INCL_PACKAGE_SUMMARY} , $P{INCL_ACCESS_PANELS}, $P{INCL_MAN_HOURS},
$P{INCL_MEN},
$P{INCL_TRADE},
$P{INCL_SKILL},
$P{INCL_WORKCARD_NUMBER},
$P{INCL_WORKCARD_PROPERTIES},
$P{WORKCARD_PROPERTIES},
$P{BLOCK_KEY},
$P{GROUP_WORKCARD_SECTIONS},
$P{INCL_WC_NOSECTION},
$P{WORKCARD_SECTIONS},
$P{INCL_SECTION_SUMMARY},
$P{INCL_HIGH_THRESH},
$P{INCL_SERIAL_LEVEL_CLL},
$P{INCL_ADSB_INTERVALS},
$P{DOCUMENT_CLASSES},
$P{EFFECTIVE_CARDS_FILTER},
$P{SUB_FLEET},
$P{AIRCRAFT_CODE}
))]]>
</queryString>
<field name="ROW_TYPE" class="java.lang.String"/>
<field name="CHAPTER" class="java.lang.String"/>
<field name="CHAPTER_DESCRIPTION" class="java.lang.String"/>
<field name="OPERATOR_CONTACT" class="java.lang.String"/>
<field name="FLEET" class="java.lang.String"/>
<field name="FLEET_DESCRIPTION" class="java.lang.String"/>
<field name="SUB_FLEET_DESCRIPTION" class="java.lang.String"/>
<field name="AIRCRAFT_REG" class="java.lang.String"/>
<field name="REVISION" class="java.lang.String"/>
<field name="REVISION_DATE" class="java.lang.String"/>
<field name="SCHEDULE_REFERENCE" class="java.lang.String"/>
<field name="ZONE" class="java.lang.String"/>
<field name="DESCRIPTION" class="java.lang.String"/>
<field name="PACKAGES" class="java.lang.String"/>
<field name="ACCESS_PANELS" class="java.lang.String"/>
<field name="THRESHOLD_INTERVAL" class="oracle.sql.CLOB"/>
<field name="REFERENCE" class="java.lang.String"/>
<field name="LABOUR" class="java.lang.String"/>
<field name="EFFECTIVITY" class="oracle.sql.CLOB"/>
<field name="WORKCARD_NUMBER" class="java.lang.String"/>
<field name="WORKCARD_SECTION_CODE" class="java.lang.String"/>
<field name="WORKCARD_SECTION_TITLE" class="java.lang.String"/>
<field name="WORKCARD_SECTION_DESC" class="java.lang.String"/>
<field name="SECTION_DEFINED" class="java.lang.String"/>
<variable name="REPORT_TITLE" class="java.lang.String">
<initialValueExpression><![CDATA["Aircraft Maintenance Programme"]]></initialValueExpression>
</variable>
<group name="WORKCARD SECTION" isStartNewPage="true">
<groupExpression><![CDATA[$P{GROUP_WORKCARD_SECTIONS}.equalsIgnoreCase("Y") ? $F{WORKCARD_SECTION_TITLE} : null]]></groupExpression>
<groupHeader>
<band height="20">
<textField isBlankWhenNull="true">
<reportElement style="SubSectionTitle" mode="Opaque" x="0" y="0" width="802" height="20" isRemoveLineWhenBlank="true" uuid="5394ed8b-3345-4184-8be7-84a1613a78b2">
<printWhenExpression><![CDATA[$F{ROW_TYPE}.equals("BODY") && $P{GROUP_WORKCARD_SECTIONS}.equals("Y")]]></printWhenExpression>
</reportElement>
<textFieldExpression><![CDATA[($F{SECTION_DEFINED} ? "" : "Section " ) + ($F{WORKCARD_SECTION_CODE} ? $F{WORKCARD_SECTION_CODE} + " - " : "") + $F{WORKCARD_SECTION_TITLE}]]></textFieldExpression>
</textField>
</band>
</groupHeader>
<groupFooter>
<band height="50">
<printWhenExpression><![CDATA[!$F{ROW_TYPE}.equals("BODY_NO_DATA")]]></printWhenExpression>
</band>
</groupFooter>
</group>
<group name="CHAPTER TITLE" isStartNewPage="true">
<groupExpression><![CDATA[$F{CHAPTER}]]></groupExpression>
<groupHeader>
<band height="20">
<printWhenExpression><![CDATA[$F{ROW_TYPE}.equals("BODY")]]></printWhenExpression>
<textField isBlankWhenNull="true">
<reportElement style="SubSectionTitle" positionType="Float" x="0" y="0" width="802" height="20" isRemoveLineWhenBlank="true" uuid="e4f1a264-a28b-4f86-8479-94d9da2f6e83">
<printWhenExpression><![CDATA[$F{ROW_TYPE}.equals("BODY") && !$F{CHAPTER}.trim().equals("")]]></printWhenExpression>
</reportElement>
<box>
<pen lineWidth="0.0"/>
<topPen lineWidth="0.0"/>
<leftPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/>
<rightPen lineWidth="0.0"/>
</box>
<textFieldExpression><![CDATA["Chapter " + $F{CHAPTER} + " " + $F{CHAPTER_DESCRIPTION}]]></textFieldExpression>
</textField>
</band>
</groupHeader>
</group>
<group name="CHAPTER" isReprintHeaderOnEachPage="true">
<groupExpression><![CDATA[$F{CHAPTER}]]></groupExpression>
<groupHeader>
<band height="24">
<printWhenExpression><![CDATA[$F{ROW_TYPE}.equals("BODY") || $F{ROW_TYPE}.equals("BODY_NO_DATA")]]></printWhenExpression>
<staticText>
<reportElement style="DetailBandTableTitle" mode="Opaque" x="98" y="0" width="204" height="24" uuid="33271916-3c9e-475b-a990-b05fefc27341">
<printWhenExpression><![CDATA[$P{INCL_ZONE}.equals("N") && $P{INCL_PACKAGES}.equals("N")]]></printWhenExpression>
</reportElement>
<box>
<pen lineWidth="1.0"/>
<topPen lineWidth="1.0"/>
<leftPen lineWidth="1.0"/>
<bottomPen lineWidth="1.0"/>
<rightPen lineWidth="1.0"/>
</box>
<text><![CDATA[Description]]></text>
</staticText>
<staticText>
<reportElement style="DetailBandTableTitle" mode="Opaque" x="0" y="0" width="98" height="24" uuid="75c29c79-0771-48c9-ba46-55dd713d436d"/>
<box>
<pen lineWidth="1.0"/>
<topPen lineWidth="1.0"/>
<leftPen lineWidth="1.0"/>
<bottomPen lineWidth="1.0"/>
<rightPen lineWidth="1.0"/>
</box>
<text><![CDATA[Task
Number]]></text>
</staticText>
<staticText>
<reportElement style="DetailBandTableTitle" mode="Opaque" x="98" y="0" width="28" height="24" uuid="ad030728-aefe-4c01-82b9-63ffb8214ad3">
<printWhenExpression><![CDATA[$P{INCL_ZONE}.equals("Y")]]></printWhenExpression>
</reportElement>
<box>
<pen lineWidth="1.0"/>
<topPen lineWidth="1.0"/>
<leftPen lineWidth="1.0"/>
<bottomPen lineWidth="1.0"/>
<rightPen lineWidth="1.0"/>
</box>
<text><![CDATA[Zone]]></text>
</staticText>
<staticText>
<reportElement style="DetailBandTableTitle" mode="Opaque" x="126" y="0" width="144" height="24" uuid="f5bec4a3-9d5f-4fb3-b85f-7d1fe6b50ba1">
<printWhenExpression><![CDATA[$P{INCL_PACKAGES}.equals("Y") && $P{INCL_ZONE}.equals("Y")]]></printWhenExpression>
</reportElement>
<box>
<pen lineWidth="1.0"/>
<topPen lineWidth="1.0"/>
<leftPen lineWidth="1.0"/>
<bottomPen lineWidth="1.0"/>
<rightPen lineWidth="1.0"/>
</box>
<text><![CDATA[Description]]></text>
</staticText>
<staticText>
<reportElement style="DetailBandTableTitle" mode="Opaque" x="126" y="0" width="176" height="24" uuid="f3babdd8-5c03-480a-90c7-44946b2a7ce2">
<printWhenExpression><![CDATA[$P{INCL_PACKAGES}.equals("N") && $P{INCL_ZONE}.equals("Y")]]></printWhenExpression>
</reportElement>
<box>
<pen lineWidth="1.0"/>
<topPen lineWidth="1.0"/>
<leftPen lineWidth="1.0"/>
<bottomPen lineWidth="1.0"/>
<rightPen lineWidth="1.0"/>
</box>
<text><![CDATA[Description]]></text>
</staticText>
<staticText>
<reportElement style="DetailBandTableTitle" mode="Opaque" x="270" y="0" width="32" height="24" uuid="489f88e5-8fd9-41a2-afa1-b3f031a838f0">
<printWhenExpression><![CDATA[$P{INCL_PACKAGES}.equals("Y")]]></printWhenExpression>
</reportElement>
<box>
<pen lineWidth="1.0"/>
<topPen lineWidth="1.0"/>
<leftPen lineWidth="1.0"/>
<bottomPen lineWidth="1.0"/>
<rightPen lineWidth="1.0"/>
</box>
<text><![CDATA[Packs]]></text>
</staticText>
<staticText>
<reportElement style="DetailBandTableTitle" mode="Opaque" x="302" y="0" width="45" height="24" uuid="884c7a60-c6c5-4920-98d6-5c2b178cc80f">
<printWhenExpression><![CDATA[$P{INCL_ACCESS_PANELS}.equals("Y")]]></printWhenExpression>
</reportElement>
<box>
<pen lineWidth="1.0"/>
<topPen lineWidth="1.0"/>
<leftPen lineWidth="1.0"/>
<bottomPen lineWidth="1.0"/>
<rightPen lineWidth="1.0"/>
</box>
<text><![CDATA[Access
Panels]]></text>
</staticText>
<staticText>
<reportElement style="DetailBandTableTitle" mode="Opaque" x="347" y="0" width="145" height="24" uuid="c36ef99c-4cfc-4f37-a6fc-472af3a3678a">
<printWhenExpression><![CDATA[$P{INCL_ACCESS_PANELS}.equals("Y")]]></printWhenExpression>
</reportElement>
<box>
<pen lineWidth="1.0"/>
<topPen lineWidth="1.0"/>
<leftPen lineWidth="1.0"/>
<bottomPen lineWidth="1.0"/>
<rightPen lineWidth="1.0"/>
</box>
<text><![CDATA[Threshold/Interval]]></text>
</staticText>
<staticText>
<reportElement style="DetailBandTableTitle" mode="Opaque" x="302" y="0" width="190" height="24" uuid="489fa447-327f-4cee-9340-638c67ec15f7">
<printWhenExpression><![CDATA[$P{INCL_ACCESS_PANELS}.equals("N")]]></printWhenExpression>
</reportElement>
<box>
<pen lineWidth="1.0"/>
<topPen lineWidth="1.0"/>
<leftPen lineWidth="1.0"/>
<bottomPen lineWidth="1.0"/>
<rightPen lineWidth="1.0"/>
</box>
<text><![CDATA[Threshold/Interval]]></text>
</staticText>
<staticText>
<reportElement style="DetailBandTableTitle" mode="Opaque" x="492" y="0" width="110" height="24" uuid="f37be1b1-7d61-4f2f-9153-a96eeb598ad7"/>
<box>
<pen lineWidth="1.0"/>
<topPen lineWidth="1.0"/>
<leftPen lineWidth="1.0"/>
<bottomPen lineWidth="1.0"/>
<rightPen lineWidth="1.0"/>
</box>
<text><![CDATA[Reference(s)]]></text>
</staticText>
<staticText>
<reportElement style="DetailBandTableTitle" mode="Opaque" x="673" y="0" width="101" height="24" uuid="acb38d7a-3f06-4ca4-ae09-27faaa17c2dc">
<printWhenExpression><![CDATA[($P{INCL_MAN_HOURS}.equals("Y") || $P{INCL_TRADE}.equals("Y") || $P{INCL_MEN}.equals("Y")) && $P{INCL_WORKCARD_NUMBER}.equals("Y")]]></printWhenExpression>
</reportElement>
<box>
<pen lineWidth="1.0"/>
<topPen lineWidth="1.0"/>
<leftPen lineWidth="1.0"/>
<bottomPen lineWidth="1.0"/>
<rightPen lineWidth="1.0"/>
</box>
<text><![CDATA[Effectivity]]></text>
</staticText>
<staticText>
<reportElement style="DetailBandTableTitle" mode="Opaque" x="602" y="0" width="200" height="24" uuid="0b0ab680-6410-4774-a78d-8652b861a9ea">
<printWhenExpression><![CDATA[$P{INCL_MAN_HOURS}.equals("N") && $P{INCL_MEN}.equals("N") && $P{INCL_TRADE}.equals("N") && $P{INCL_WORKCARD_NUMBER}.equals("N")]]></printWhenExpression>
</reportElement>
<box>
<pen lineWidth="1.0"/>
<topPen lineWidth="1.0"/>
<leftPen lineWidth="1.0"/>
<bottomPen lineWidth="1.0"/>
<rightPen lineWidth="1.0"/>
</box>
<text><![CDATA[Effectivity]]></text>
</staticText>
<staticText>
<reportElement style="DetailBandTableTitle" mode="Opaque" x="602" y="0" width="172" height="24" uuid="4e767292-2e07-4caa-a6eb-d556a847fd73">
<printWhenExpression><![CDATA[$P{INCL_MAN_HOURS}.equals("N") && $P{INCL_MEN}.equals("N") && $P{INCL_TRADE}.equals("N") && $P{INCL_WORKCARD_NUMBER}.equals("Y")]]></printWhenExpression>
</reportElement>
<box>
<pen lineWidth="1.0"/>
<topPen lineWidth="1.0"/>
<leftPen lineWidth="1.0"/>
<bottomPen lineWidth="1.0"/>
<rightPen lineWidth="1.0"/>
</box>
<text><![CDATA[Effectivity]]></text>
</staticText>
<staticText>
<reportElement style="DetailBandTableTitle" mode="Opaque" x="673" y="0" width="129" height="24" uuid="356d2105-e6c4-468f-a983-7eab1fc5a5fc">
<printWhenExpression><![CDATA[($P{INCL_MAN_HOURS}.equals("Y") || $P{INCL_TRADE}.equals("Y") || $P{INCL_MEN}.equals("Y")) && $P{INCL_WORKCARD_NUMBER}.equals("N")]]></printWhenExpression>
</reportElement>
<box>
<pen lineWidth="1.0"/>
<topPen lineWidth="1.0"/>
<leftPen lineWidth="1.0"/>
<bottomPen lineWidth="1.0"/>
<rightPen lineWidth="1.0"/>
</box>
<text><![CDATA[Effectivity]]></text>
</staticText>
<staticText>
<reportElement style="DetailBandTableTitle" mode="Opaque" x="774" y="0" width="28" height="24" uuid="885bfb92-b6ab-4617-87d6-661428cc409a">
<printWhenExpression><![CDATA[$P{INCL_WORKCARD_NUMBER}.equals("Y")]]></printWhenExpression>
</reportElement>
<box>
<pen lineWidth="1.0"/>
<topPen lineWidth="1.0"/>
<leftPen lineWidth="1.0"/>
<bottomPen lineWidth="1.0"/>
<rightPen lineWidth="1.0"/>
</box>
<text><![CDATA[Card]]></text>
</staticText>
<staticText>
<reportElement style="DetailBandTableTitle" mode="Opaque" x="602" y="0" width="71" height="24" uuid="77f416ad-5def-4543-a0a8-561b39a5f139">
<printWhenExpression><![CDATA[$P{INCL_MAN_HOURS}.equals("Y") && $P{INCL_TRADE}.equals("N") && $P{INCL_MEN}.equals("N")]]></printWhenExpression>
</reportElement>
<text><![CDATA[Hours]]></text>
</staticText>
<staticText>
<reportElement style="DetailBandTableTitle" mode="Opaque" x="602" y="0" width="71" height="24" uuid="e967935f-2cdd-47a8-b0f9-cada8dd554cb">
<printWhenExpression><![CDATA[$P{INCL_MAN_HOURS}.equals("N") && $P{INCL_TRADE}.equals("N") && $P{INCL_MEN}.equals("Y")]]></printWhenExpression>
</reportElement>
<text><![CDATA[Men]]></text>
</staticText>
<staticText>
<reportElement style="DetailBandTableTitle" mode="Opaque" x="602" y="0" width="71" height="24" uuid="9dd1b2c6-4dba-44d3-85bb-abd82f38ec1a">
<printWhenExpression><![CDATA[$P{INCL_MAN_HOURS}.equals("Y") && $P{INCL_TRADE}.equals("N") && $P{INCL_MEN}.equals("Y")]]></printWhenExpression>
</reportElement>
<box>
<pen lineWidth="1.0"/>
<topPen lineWidth="1.0"/>
<leftPen lineWidth="1.0"/>
<bottomPen lineWidth="1.0"/>
<rightPen lineWidth="1.0"/>
</box>
<text><![CDATA[Men/Hours]]></text>
</staticText>
<staticText>
<reportElement style="DetailBandTableTitle" mode="Opaque" x="602" y="0" width="71" height="24" uuid="cf7d1e10-57cd-4fad-87ce-5cda585e6f7a">
<printWhenExpression><![CDATA[$P{INCL_MAN_HOURS}.equals("N")
&& $P{INCL_TRADE}.equals("Y")
&& $P{INCL_MEN}.equals("N")]]></printWhenExpression>
</reportElement>
<box>
<pen lineWidth="1.0"/>
<topPen lineWidth="1.0"/>
<leftPen lineWidth="1.0"/>
<bottomPen lineWidth="1.0"/>
<rightPen lineWidth="1.0"/>
</box>
<text><![CDATA[Trade]]></text>
</staticText>
<staticText>
<reportElement style="DetailBandTableTitle" mode="Opaque" x="602" y="0" width="71" height="24" uuid="08ec06d6-5f9f-4e28-97d6-9972912a5f5f">
<printWhenExpression><![CDATA[$P{INCL_MAN_HOURS}.equals("Y") && $P{INCL_TRADE}.equals("Y") && $P{INCL_MEN}.equals("N")]]></printWhenExpression>
</reportElement>
<text><![CDATA[Trade/Hours]]></text>
</staticText>
<staticText>
<reportElement style="DetailBandTableTitle" mode="Opaque" x="602" y="0" width="71" height="24" uuid="b324f07d-8a66-403e-83c1-d500925594ae">
<printWhenExpression><![CDATA[$P{INCL_MAN_HOURS}.equals("N") && $P{INCL_TRADE}.equals("Y") && $P{INCL_MEN}.equals("Y")]]></printWhenExpression>
</reportElement>
<text><![CDATA[Trade/Men]]></text>
</staticText>
<staticText>
<reportElement style="DetailBandTableTitle" mode="Opaque" x="602" y="0" width="71" height="24" uuid="4f598842-b6fc-425e-ba89-efd2778737ca">
<printWhenExpression><![CDATA[$P{INCL_MAN_HOURS}.equals("Y") && $P{INCL_TRADE}.equals("Y") && $P{INCL_MEN}.equals("Y")]]></printWhenExpression>
</reportElement>
<box>
<pen lineWidth="1.0"/>
<topPen lineWidth="1.0"/>
<leftPen lineWidth="1.0"/>
<bottomPen lineWidth="1.0"/>
<rightPen lineWidth="1.0"/>
</box>
<text><![CDATA[Trade/Men/ Hours]]></text>
</staticText>
<staticText>
<reportElement style="DetailBandTableTitle" mode="Opaque" x="98" y="0" width="172" height="24" uuid="517919f1-b95a-41ee-b330-f89ff7380d9a">
<printWhenExpression><![CDATA[$P{INCL_ZONE}.equals("N") && $P{INCL_PACKAGES}.equals("Y")]]></printWhenExpression>
</reportElement>
<box>
<pen lineWidth="1.0"/>
<topPen lineWidth="1.0"/>
<leftPen lineWidth="1.0"/>
<bottomPen lineWidth="1.0"/>
<rightPen lineWidth="1.0"/>
</box>
<text><![CDATA[Description]]></text>
</staticText>
</band>
</groupHeader>
</group>
<background>
<band splitType="Stretch"/>
</background>
<title>
<band height="70" splitType="Stretch">
<subreport>
<reportElement x="-21" y="0" width="843" height="26" uuid="fcd1da8b-d90a-44ac-8470-1241600d18df"/>
<subreportParameter name="REPORT_TITLE">
<subreportParameterExpression><![CDATA[$V{REPORT_TITLE}]]></subreportParameterExpression>
</subreportParameter>
<subreportParameter name="REPORT_TIME">
<subreportParameterExpression><![CDATA[$P{REPORT_TIME}]]></subreportParameterExpression>
</subreportParameter>
<subreportParameter name="PAGE_NUMBER">
<subreportParameterExpression><![CDATA[$V{PAGE_NUMBER}]]></subreportParameterExpression>
</subreportParameter>
<subreportParameter name="STYLE_SHEET">
<subreportParameterExpression><![CDATA[$P{STYLE_SHEET}]]></subreportParameterExpression>
</subreportParameter>
<subreportParameter name="OPERATOR_NAME">
<subreportParameterExpression><![CDATA[$P{OPERATOR_NAME}]]></subreportParameterExpression>
</subreportParameter>
<subreportParameter name="OASES_OPTION">
<subreportParameterExpression><![CDATA[$P{OASES_OPTION}]]></subreportParameterExpression>
</subreportParameter>
<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
<subreportExpression><![CDATA[net.sf.jasperreports.engine.JasperCompileManager.compileReport(
new ByteArrayInputStream( $P{TITLE_STRING}.getBytes()))]]></subreportExpression>
</subreport>
<textField pattern="" isBlankWhenNull="false">
<reportElement style="HeaderBandTableTitle" positionType="Float" isPrintRepeatedValues="false" mode="Opaque" x="99" y="26" width="193" height="14" uuid="d5f7dfde-4c1e-4bf6-805b-809b7aae6566">
<printWhenExpression><![CDATA[($F{AIRCRAFT_REG} == null && $F{SUB_FLEET_DESCRIPTION} == null)]]></printWhenExpression>
</reportElement>
<box>
<pen lineWidth="1.0"/>
<topPen lineWidth="1.0"/>
<leftPen lineWidth="1.0"/>
<bottomPen lineWidth="1.0"/>
<rightPen lineWidth="1.0"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA["Fleet"]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement style="HeaderBandTableTitle" positionType="Float" isPrintRepeatedValues="false" mode="Opaque" x="292" y="26" width="406" height="14" uuid="7ab0d393-8553-451c-bda0-5321671cd7a8"/>
<box>
<pen lineWidth="1.0"/>
<topPen lineWidth="1.0"/>
<leftPen lineWidth="1.0"/>
<bottomPen lineWidth="1.0"/>
<rightPen lineWidth="1.0"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA["Revision"]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement style="HeaderBandTableText" positionType="Float" isPrintRepeatedValues="false" mode="Opaque" x="99" y="40" width="193" height="14" uuid="2f303c48-3657-42ba-8043-cc992f0d8d08">
<printWhenExpression><![CDATA[($F{AIRCRAFT_REG} == null && $F{SUB_FLEET_DESCRIPTION} == null)]]></printWhenExpression>
</reportElement>
<box>
<pen lineWidth="1.0"/>
<topPen lineWidth="1.0"/>
<leftPen lineWidth="1.0"/>
<bottomPen lineWidth="1.0"/>
<rightPen lineWidth="1.0"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{FLEET_DESCRIPTION}]]></textFieldExpression>
</textField>
</band>
</summary>
</jasperReport>

Can I change SVG "xlink:href" of image tag just use CSS?

My SVG pattern Shown below
<pattern id="img1" patternUnits="userSpaceOnUse" width="10" height="10">
<image xlink:href="Buzz.jpg" x="0" y="0" width="10" height="10" />
</pattern>
<pattern id="img2" patternUnits="userSpaceOnUse" width="10" height="10">
<image xlink:href="Tank-icon2.png" x="0" y="0" width="10" height="10" />
</pattern>
Now, I want to change xlink:href="Buzz.jpg" to xlink:href="Buzz2.jpg". Can I just do it by CSS?
No, you cannot use CSS to change HTML tag attributes.

Resources