Hello,
Opening a report made with adhoc report (jasperreport) inside ireport, I've got the error "java.lang.ClassNotFoundException: com.jaspersoft.jasperserver.api.metadata.user.domain.User". Does it speak to you ?
Regards,
Blured.
Hello,
Opening a report made with adhoc report (jasperreport) inside ireport, I've got the error "java.lang.ClassNotFoundException: com.jaspersoft.jasperserver.api.metadata.user.domain.User". Does it speak to you ?
Regards,
Blured.
Hi,
The message said:
For package "com.jaspersoft.jasperserver.api.metadata.user.domain" User class is missed.
Can you post your JRXML file ?
I think, it's closed to include tag problem
![]()
Oups, désolé d'avoir posté en anglais. Voici le fichier JRXML généré correspondant.
---
<?xml version="1.0" encoding="UTF-8"?>
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlnssi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="test" pageWidth="612" pageHeight="792" columnWidth="552" leftMargin="30" rightMargin="30" topMargin="20" bottomMargin="20">
<property name="com.jaspersoft.ji.adhoc" value="1"/>
<property name="net.sf.jasperreports.export.pdf.tagged" value="true"/>
<property name="net.sf.jasperreports.export.pdf.tag.language" value="EN-US"/>
<style name="ReportDefault" isDefault="true" forecolor="#000000" backcolor="#FFFFFF" hAlign="Left" vAlign="Middle" fontName="Arial" fontSize="10" pdfFontName="Helvetica">
<box>
<pen lineColor="#000000"/>
</box>
</style>
<style name="PageHeaderFooter" isDefault="false" style="ReportDefault" forecolor="#000000" vAlign="Top" fontName="Arial" fontSize="9">
<pen lineWidth="1.0" lineStyle="Solid"/>
</style>
<style name="Group1HeaderFooter" isDefault="false" style="ReportDefault" mode="Opaque" forecolor="#000000" backcolor="#FFFFFF" fontName="Arial" fontSize="12" isBold="true" pdfFontName="Helvetica-Bold"/>
<style name="Group1Header" isDefault="false" style="Group1HeaderFooter"/>
<style name="Group1Footer" isDefault="false" style="Group1HeaderFooter"/>
<style name="Group2HeaderFooter" isDefault="false" style="ReportDefault" mode="Opaque" forecolor="#000000" backcolor="#D0D0D0" fontName="Arial" fontSize="11" isBold="true" pdfFontName="Helvetica-Bold"/>
<style name="Group2Header" isDefault="false" style="Group2HeaderFooter"/>
<style name="Group2Footer" isDefault="false" style="Group2HeaderFooter"/>
<style name="Group3HeaderFooter" isDefault="false" style="ReportDefault" fontName="Arial" fontSize="11" isBold="true" pdfFontName="Helvetica-Bold"/>
<style name="Group3Header" isDefault="false" style="Group3HeaderFooter"/>
<style name="Group3Footer" isDefault="false" style="Group3HeaderFooter"/>
<style name="ColumnHeaderFooter" isDefault="false" style="ReportDefault" mode="Opaque" forecolor="#000000" backcolor="#C0C0C0" fontName="Arial" fontSize="11" isBold="true" pdfFontName="Helvetica-Bold">
<pen lineWidth="0.5" lineStyle="Solid"/>
<box>
<pen lineColor="#000000"/>
<topPen lineWidth="0.5" lineStyle="Solid"/>
<bottomPen lineWidth="0.5" lineStyle="Solid"/>
</box>
</style>
<style name="TableSummaries" isDefault="false" style="ReportDefault" mode="Opaque" forecolor="#000000" backcolor="#C0C0C0" fontName="Arial" fontSize="11" isBold="true" pdfFontName="Helvetica-Bold">
<pen lineWidth="0.5" lineStyle="Solid"/>
<box>
<pen lineColor="#000000"/>
<topPen lineWidth="0.5" lineStyle="Solid"/>
<bottomPen lineWidth="0.5" lineStyle="Solid"/>
</box>
</style>
<style name="Title" isDefault="false" style="ReportDefault" mode="Opaque" backcolor="#FFFFFF" hAlign="Center" fontName="Arial" fontSize="18" isBold="true" pdfFontName="Helvetica-Bold">
<pen lineWidth="0.5" lineStyle="Solid"/>
<box>
<pen lineColor="#000000"/>
<topPen lineWidth="0.5" lineStyle="Solid"/>
</box>
</style>
<style name="Details" isDefault="false" style="ReportDefault" mode="Opaque" forecolor="#000000" backcolor="#FFFFFF">
<conditionalStyle>
<conditionExpression><![CDATA[new Boolean($V{InnerRowCount}.intValue() % 2 == 0)]]></conditionExpression>
<style isDefault="false" style="Details" mode="Opaque" forecolor="#000000" backcolor="#EFEFEF"/>
</conditionalStyle>
</style>
<style name="CrosstabDefaults" isDefault="false" style="ReportDefault" mode="Opaque" forecolor="#000000" vAlign="Middle" fontName="Arial" fontSize="11" pdfFontName="Helvetica-Bold">
<box>
<pen lineColor="#000000"/>
</box>
</style>
<style name="CrosstabTitleStyle" isDefault="false" style="ReportDefault" mode="Transparent" forecolor="#000000" hAlign="Center" vAlign="Middle" fontName="Arial" fontSize="13" isBold="true" pdfFontName="Helvetica-Bold">
<box>
<pen lineColor="#000000"/>
</box>
</style>
<style name="CrosstabColumn1" isDefault="false" style="ReportDefault" mode="Opaque" forecolor="#000000" backcolor="#C0C0C0" hAlign="Center" vAlign="Middle" fontName="Arial" fontSize="11" isBold="true" pdfFontName="Helvetica-Bold">
<box>
<pen lineColor="#000000"/>
</box>
</style>
<style name="CrosstabColumn2" isDefault="false" style="ReportDefault" mode="Opaque" forecolor="#000000" backcolor="#EFEFEF" hAlign="Center" vAlign="Middle" fontName="Arial" fontSize="11" isBold="true" pdfFontName="Helvetica-Bold">
<box>
<pen lineColor="#000000"/>
</box>
</style>
<style name="CrosstabColumn3" isDefault="false" style="ReportDefault" mode="Opaque" forecolor="#000000" backcolor="#F5F2F2" hAlign="Center" vAlign="Middle" fontName="Arial" fontSize="11" isBold="true" pdfFontName="Helvetica-Bold">
<box>
<pen lineColor="#000000"/>
</box>
</style>
<style name="CrosstabRow1" isDefault="false" style="ReportDefault" mode="Opaque" forecolor="#000000" backcolor="#FFFFFF" hAlign="Left" vAlign="Middle" fontName="Arial" fontSize="11" isBold="true" pdfFontName="Helvetica-Bold">
<box>
<pen lineColor="#000000"/>
</box>
</style>
<style name="CrosstabRow2" isDefault="false" style="ReportDefault" mode="Opaque" forecolor="#000000" backcolor="#D0D0D0" hAlign="Left" vAlign="Middle" fontName="Arial" fontSize="11" isBold="true" pdfFontName="Helvetica-Bold">
<box>
<pen lineColor="#000000"/>
</box>
</style>
<style name="CrosstabRow3" isDefault="false" style="ReportDefault" mode="Opaque" forecolor="#000000" backcolor="#F5F2F2" hAlign="Left" vAlign="Middle" fontName="Arial" fontSize="11" isBold="true" pdfFontName="Helvetica-Bold">
<box>
<pen lineColor="#000000"/>
</box>
</style>
<style name="CrosstabGrandTotal" isDefault="false" style="ReportDefault" mode="Opaque" forecolor="#000000" backcolor="#C0C0C0" hAlign="Center" vAlign="Middle" fontName="Arial" fontSize="11" isBold="true" pdfFontName="Helvetica-Bold">
<box>
<pen lineColor="#000000"/>
</box>
</style>
<style name="CrosstabColumnWidth" isDefault="false" style="ReportDefault" mode="Opaque" forecolor="#000000" vAlign="Middle" fontName="Arial" fontSize="11" pdfFontName="Helvetica-Bold">
<box>
<pen lineColor="#000000"/>
</box>
</style>
<style name="CrosstabRowWidth" isDefault="false" style="ReportDefault" mode="Opaque" forecolor="#000000" vAlign="Middle" fontName="Arial" fontSize="11" pdfFontName="Helvetica-Bold">
<box>
<pen lineColor="#000000"/>
</box>
</style>
<style name="CrosstabMeasureCell" isDefault="false" style="ReportDefault" mode="Opaque" forecolor="#000000" backcolor="#FFFFFF" vAlign="Middle" fontName="Arial" fontSize="10" pdfFontName="Helvetica-Bold">
<box>
<pen lineColor="#000000"/>
</box>
</style>
<style name="ChartReportTitle" isDefault="false" style="ReportDefault" mode="Opaque" backcolor="#FFFFFF" hAlign="Center" fontName="Arial" fontSize="18" isBold="true" pdfFontName="Helvetica-Bold">
<pen lineWidth="0.5" lineStyle="Solid"/>
<box>
<pen lineColor="#000000"/>
<topPen lineWidth="0.5" lineStyle="Solid"/>
<bottomPen lineWidth="0.5" lineStyle="Solid"/>
</box>
</style>
<style name="ChartTitle" isDefault="false" forecolor="#000000" fontName="Arial" fontSize="12" isBold="true" pdfFontName="Helvetica-Bold"/>
<style name="ChartSubtitle" isDefault="false" forecolor="#000000" fontName="Arial" fontSize="9" isBold="false" pdfFontName="Helvetica"/>
<style name="ChartLegend" isDefault="false" forecolor="#000000" backcolor="#FFFFFF" fontName="Verdana" fontSize="9" isBold="false" pdfFontName="Helvetica"/>
<style name="ChartSeriesColor0" isDefault="false" backcolor="#3333FF"/>
<style name="ChartSeriesColor1" isDefault="false" backcolor="#FF3333"/>
<style name="ChartSeriesColor2" isDefault="false" backcolor="#C2C2C2"/>
<style name="ChartSeriesColor3" isDefault="false" backcolor="#FFF333"/>
<style name="ChartSeriesColor4" isDefault="false" backcolor="#0BC349"/>
<style name="ChartSeriesColor5" isDefault="false" backcolor="#9A2CAB"/>
<style name="ChartSeriesColor6" isDefault="false" backcolor="#919191"/>
<style name="ChartSeriesColor7" isDefault="false" backcolor="#FF9C00"/>
<style name="ChartSeriesColor8" isDefault="false" backcolor="#00BFF3"/>
<style name="ChartSeriesColor9" isDefault="false" backcolor="#007205"/>
<style name="ChartSeriesColor10" isDefault="false" backcolor="#EC00B2"/>
<style name="ChartSeriesColor11" isDefault="false" backcolor="#4F0E73"/>
<style name="ChartSeriesColor12" isDefault="false" backcolor="#F25618"/>
<style name="ChartSeriesColor13" isDefault="false" backcolor="#2EE5E5"/>
<style name="ChartSeriesColor14" isDefault="false" backcolor="#35379C"/>
<style name="ChartSeriesColor15" isDefault="false" backcolor="#E8FF68"/>
<style name="ChartCategoryAxisLabelFormat" isDefault="false" forecolor="#000000" fontName="Arial" fontSize="11" isBold="true" pdfFontName="Helvetica-Bold"/>
<style name="ChartCategoryAxisTickFormat" isDefault="false" forecolor="#000000" fontName="Verdana" fontSize="9" isBold="false" pdfFontName="Helvetica"/>
<style name="ChartValueAxisLabelFormat" isDefault="false" forecolor="#000000" fontName="Arial" fontSize="11" isBold="true" pdfFontName="Helvetica-Bold"/>
<style name="ChartValueAxisTickFormat" isDefault="false" forecolor="#000000" fontName="Verdana" fontSize="9" isBold="false" pdfFontName="Helvetica"/>
<parameter name="LoggedInUser" class="com.jaspersoft.jasperserver.api.metadata.user.domain.User" isForPrompting="false"/>
<queryString language="sl">
<![CDATA[<query xmlns="http://www.jaspersoft.com/2007/SL/XMLSchema">
<queryFields>
<queryField id="historique.actions.DATE_OPERATION" />
<queryField id="historique.actions.DN_ACTEUR" />
<queryField id="historique.actions.NOM_OPERATION" />
<queryField id="historique.actions.UNITE_ORGANISATIONNELLE" />
<queryField id="historique.DOCUMENT.ID_DOCUMENT" />
<queryField id="historique.DOCUMENT.SUJET_DOCUMENT" />
<queryField id="historique.ETATS.NOM_ETAT" />
<queryField id="historique.TYPE_PROCESSUS.DATE_VERSION_PROCESSUS" />
<queryField id="historique.TYPE_PROCESSUS.ID_TYPE_PROCESSUS" />
<queryField id="historique.TYPE_PROCESSUS.NOM_TYPE_PROCESSUS" />
<queryField id="historique.TYPE_PROCESSUS.TYPE_DOCUMENTS" />
<queryField id="historique.document_type_names.ID_TYPE_DOCUMENT" />
<queryField id="historique.document_type_names.LANGUE_TYPE_DOCUMENT" />
<queryField id="historique.document_type_names.NOM_TYPE_DOCUMENT" />
</queryFields>
<queryFilterString>historique.DOCUMENT.ID_DOCUMENT <= 100</queryFilterString>
</query>]]>
</queryString>
<field name="historique.actions.DATE_OPERATION" class="java.lang.Long">
<property name="slIsTableAsList" value="false"/>
<property name="adhoc.tree.uri" value="/historique/actions/DATE_OPERATION"/>
<property name="semantic.item.desc" value="OPERATION_DATE"/>
<property name="adhoc.display" value="Date operation"/>
<property name="adhoc.tree.labels" value="[{"label":"historique","uri":"/historique","labelId":"","resourceId":"JoinTree_1"},{"label":"actions","uri":"/historique/actions","labelId":"","resourceId":"JoinTree_1"},{"label":"Document","uri":"/historique/DOCUMENT","labelId":"","resourceId":"JoinTree_1"},{"label":"Etats","uri":"/historique/ETATS","labelId":"","resourceId":"JoinTree_1"},{"label":"Type de processus","uri":"/historique/TYPE_PROCESSUS","labelId":"","resourceId":"JoinTree_1"},{"label":"Types de documents","uri":"/historique/document_type_names","labelId":"","resourceId":"JoinTree_1"}]"/>
<property name="semantic.tree.uri" value="/historique/actions/DATE_OPERATION"/>
<property name="semantic.tree.sort.order" value="{"document_type_names":17,"TYPE_PROCESSUS":12,"NOM_TYPE_DOCUMENT":20,"TYPE_DOCUMENTS":16,"NOM_TYPE_PROCESSUS":15,"ETATS":10,"DOCUMENT":7,"ID_TYPE_PROCESSUS":14,"historique":1,"NOM_OPERATION":5,"actions":2,"DATE_VERSION_PROCESSUS":13,"ID_TYPE_DOCUMENT":18,"SUJET_DOCUMENT":9,"DATE_OPERATION":3,"UNITE_ORGANISATIONNELLE":6,"LANGUE_TYPE_DOCUMENT":19,"ID_DOCUMENT":8,"DN_ACTEUR":4,"NOM_ETAT":11}"/>
<property name="resourceId" value="JoinTree_1.history.OPERATION_DATE"/>
</field>
<field name="historique.actions.DN_ACTEUR" class="java.lang.String">
<property name="semantic.item.desc" value="DN_ACTOR"/>
<property name="adhoc.display" value="DN Acteur"/>
<property name="semantic.tree.uri" value="/historique/actions/DN_ACTEUR"/>
<property name="adhoc.tree.uri" value="/historique/actions/DN_ACTEUR"/>
<property name="resourceId" value="JoinTree_1.actors.DN_ACTOR"/>
<property name="semantic.tree.sort.order" value="1"/>
</field>
<field name="historique.actions.NOM_OPERATION" class="java.lang.String">
<property name="semantic.item.desc" value="EXTERNAL_NAME"/>
<property name="adhoc.display" value="Nom operation"/>
<property name="semantic.tree.uri" value="/historique/actions/NOM_OPERATION"/>
<property name="adhoc.tree.uri" value="/historique/actions/NOM_OPERATION"/>
<property name="resourceId" value="JoinTree_1.operation_names.EXTERNAL_NAME"/>
<property name="semantic.tree.sort.order" value="2"/>
</field>
<field name="historique.actions.UNITE_ORGANISATIONNELLE" class="java.lang.String">
<property name="semantic.item.desc" value="UNIT_DISPLAY_NAME"/>
<property name="adhoc.display" value="Unite organisationnelle"/>
<property name="semantic.tree.uri" value="/historique/actions/UNITE_ORGANISATIONNELLE"/>
<property name="adhoc.tree.uri" value="/historique/actions/UNITE_ORGANISATIONNELLE"/>
<property name="resourceId" value="JoinTree_1.history.UNIT_DISPLAY_NAME"/>
<property name="semantic.tree.sort.order" value="3"/>
</field>
<field name="historique.DOCUMENT.ID_DOCUMENT" class="java.lang.Long">
<property name="semantic.item.desc" value="ID"/>
<property name="adhoc.display" value="Id document"/>
<property name="semantic.tree.uri" value="/historique/DOCUMENT/ID_DOCUMENT"/>
<property name="adhoc.tree.uri" value="/historique/DOCUMENT/ID_DOCUMENT"/>
<property name="resourceId" value="JoinTree_1.workflow.ID"/>
<property name="semantic.tree.sort.order" value="0"/>
</field>
<field name="historique.DOCUMENT.SUJET_DOCUMENT" class="java.lang.String">
<property name="semantic.item.desc" value="DOC_SUBJECT"/>
<property name="adhoc.display" value="Sujet document"/>
<property name="semantic.tree.uri" value="/historique/DOCUMENT/SUJET_DOCUMENT"/>
<property name="adhoc.tree.uri" value="/historique/DOCUMENT/SUJET_DOCUMENT"/>
<property name="resourceId" value="JoinTree_1.workflow.DOC_SUBJECT"/>
<property name="semantic.tree.sort.order" value="1"/>
</field>
<field name="historique.ETATS.NOM_ETAT" class="java.lang.String">
<property name="semantic.item.desc" value="EXTERNAL_NAME"/>
<property name="adhoc.display" value="Nom de l etat"/>
<property name="semantic.tree.uri" value="/historique/ETATS/NOM_ETAT"/>
<property name="adhoc.tree.uri" value="/historique/ETATS/NOM_ETAT"/>
<property name="resourceId" value="JoinTree_1.state_names.EXTERNAL_NAME"/>
<property name="semantic.tree.sort.order" value="0"/>
</field>
<field name="historique.TYPE_PROCESSUS.DATE_VERSION_PROCESSUS" class="java.lang.Long">
<property name="semantic.item.desc" value="VERSION_DATE"/>
<property name="adhoc.display" value="Date version du processus"/>
<property name="semantic.tree.uri" value="/historique/TYPE_PROCESSUS/DATE_VERSION_PROCESSUS"/>
<property name="adhoc.tree.uri" value="/historique/TYPE_PROCESSUS/DATE_VERSION_PROCESSUS"/>
<property name="resourceId" value="JoinTree_1.process_types.VERSION_DATE"/>
<property name="semantic.tree.sort.order" value="0"/>
</field>
<field name="historique.TYPE_PROCESSUS.ID_TYPE_PROCESSUS" class="java.lang.Long">
<property name="semantic.item.desc" value="PROCESS_TYPE_ID"/>
<property name="adhoc.display" value="Id type de processus"/>
<property name="semantic.tree.uri" value="/historique/TYPE_PROCESSUS/ID_TYPE_PROCESSUS"/>
<property name="adhoc.tree.uri" value="/historique/TYPE_PROCESSUS/ID_TYPE_PROCESSUS"/>
<property name="resourceId" value="JoinTree_1.process_type_names.PROCESS_TYPE_ID"/>
<property name="semantic.tree.sort.order" value="1"/>
</field>
<field name="historique.TYPE_PROCESSUS.NOM_TYPE_PROCESSUS" class="java.lang.String">
<property name="semantic.item.desc" value="EXTERNAL_NAME"/>
<property name="adhoc.display" value="Nom type de processus"/>
<property name="semantic.tree.uri" value="/historique/TYPE_PROCESSUS/NOM_TYPE_PROCESSUS"/>
<property name="adhoc.tree.uri" value="/historique/TYPE_PROCESSUS/NOM_TYPE_PROCESSUS"/>
<property name="resourceId" value="JoinTree_1.process_type_names.EXTERNAL_NAME"/>
<property name="semantic.tree.sort.order" value="2"/>
</field>
<field name="historique.TYPE_PROCESSUS.TYPE_DOCUMENTS" class="java.lang.Short">
<property name="semantic.item.desc" value="VERSION_NUMBER"/>
<property name="adhoc.display" value="Numero de version du processus"/>
<property name="semantic.tree.uri" value="/historique/TYPE_PROCESSUS/TYPE_DOCUMENTS"/>
<property name="adhoc.tree.uri" value="/historique/TYPE_PROCESSUS/TYPE_DOCUMENTS"/>
<property name="resourceId" value="JoinTree_1.process_types.VERSION_NUMBER"/>
<property name="semantic.tree.sort.order" value="3"/>
</field>
<field name="historique.document_type_names.ID_TYPE_DOCUMENT" class="java.lang.Long">
<property name="semantic.item.desc" value="DOCUMENT_TYPE_ID"/>
<property name="adhoc.display" value="Id type de document"/>
<property name="semantic.tree.uri" value="/historique/document_type_names/ID_TYPE_DOCUMENT"/>
<property name="adhoc.tree.uri" value="/historique/document_type_names/ID_TYPE_DOCUMENT"/>
<property name="resourceId" value="JoinTree_1.document_type_names.DOCUMENT_TYPE_ID"/>
<property name="semantic.tree.sort.order" value="0"/>
</field>
<field name="historique.document_type_names.LANGUE_TYPE_DOCUMENT" class="java.lang.String">
<property name="semantic.item.desc" value="LANGUAGE"/>
<property name="adhoc.display" value="Langue type de document"/>
<property name="semantic.tree.uri" value="/historique/document_type_names/LANGUE_TYPE_DOCUMENT"/>
<property name="adhoc.tree.uri" value="/historique/document_type_names/LANGUE_TYPE_DOCUMENT"/>
<property name="resourceId" value="JoinTree_1.document_type_names.LANGUAGE"/>
<property name="semantic.tree.sort.order" value="1"/>
</field>
<field name="historique.document_type_names.NOM_TYPE_DOCUMENT" class="java.lang.String">
<property name="semantic.item.desc" value="EXTERNAL_NAME"/>
<property name="adhoc.display" value="Nom type de document"/>
<property name="semantic.tree.uri" value="/historique/document_type_names/NOM_TYPE_DOCUMENT"/>
<property name="adhoc.tree.uri" value="/historique/document_type_names/NOM_TYPE_DOCUMENT"/>
<property name="resourceId" value="JoinTree_1.document_type_names.EXTERNAL_NAME"/>
<property name="semantic.tree.sort.order" value="2"/>
</field>
<variable name="InnerRowCount" class="java.lang.Integer" resetType="None">
<variableExpression><![CDATA[]]></variableExpression>
</variable>
<group name="grp_type_processus" isStartNewPage="true" minHeightToStartNewPage="60">
<groupExpression><![CDATA[$F{historique.TYPE_PROCESSUS.NOM_TYPE_PROCESSUS}]]></groupExpression>
<groupHeader>
<band height="25">
<staticText>
<reportElement x="0" y="0" width="128" height="20"/>
<textElement/>
<text><![CDATA[Nom type de processus :]]></text>
</staticText>
<textField hyperlinkType="None">
<reportElement x="128" y="0" width="136" height="20"/>
<textElement/>
<textFieldExpression class="java.lang.String"><![CDATA[$F{historique.TYPE_PROCESSUS.NOM_TYPE_PROCESSUS}]]></textFieldExpression>
</textField>
</band>
</groupHeader>
<groupFooter>
<band height="25">
<frame>
<reportElement style="Group1Footer" x="0" y="0" width="552" height="25">
<property name="net.sf.jasperreports.export.pdf.tag.tr" value="full"/>
</reportElement>
</frame>
</band>
</groupFooter>
</group>
<group name="grp_version_type_processus" minHeightToStartNewPage="60">
<groupExpression><![CDATA[$F{historique.TYPE_PROCESSUS.TYPE_DOCUMENTS}]]></groupExpression>
<groupHeader>
<band height="25">
<staticText>
<reportElement x="0" y="5" width="128" height="20"/>
<textElement/>
<text><![CDATA[Version du processus :]]></text>
</staticText>
<textField hyperlinkType="None">
<reportElement x="128" y="5" width="136" height="20"/>
<textElement/>
<textFieldExpression class="java.lang.Short"><![CDATA[$F{historique.TYPE_PROCESSUS.TYPE_DOCUMENTS}]]></textFieldExpression>
</textField>
</band>
</groupHeader>
<groupFooter>
<band height="25"/>
</groupFooter>
</group>
<group name="grp_nom_type_doc" isStartNewPage="true" minHeightToStartNewPage="60">
<groupExpression><![CDATA[$F{historique.document_type_names.NOM_TYPE_DOCUMENT}]]></groupExpression>
<groupHeader>
<band height="25">
<staticText>
<reportElement x="0" y="0" width="128" height="20"/>
<textElement/>
<text><![CDATA[Nom type de document :]]></text>
</staticText>
<textField hyperlinkType="None">
<reportElement x="128" y="0" width="136" height="20"/>
<textElement/>
<textFieldExpression class="java.lang.String"><![CDATA[$F{historique.document_type_names.NOM_TYPE_DOCUMENT}]]></textFieldExpression>
</textField>
</band>
</groupHeader>
<groupFooter>
<band height="46"/>
</groupFooter>
</group>
<group name="grp_etat_doc" minHeightToStartNewPage="60">
<groupExpression><![CDATA[$F{historique.ETATS.NOM_ETAT}]]></groupExpression>
<groupHeader>
<band height="25">
<staticText>
<reportElement x="0" y="0" width="128" height="20"/>
<textElement/>
<text><![CDATA[Etat du processus : ]]></text>
</staticText>
<textField hyperlinkType="None">
<reportElement x="128" y="0" width="136" height="20"/>
<textElement/>
<textFieldExpression class="java.lang.String"><![CDATA[$F{historique.ETATS.NOM_ETAT}]]></textFieldExpression>
</textField>
</band>
</groupHeader>
<groupFooter>
<band height="25"/>
</groupFooter>
</group>
<group name="pouet">
<groupExpression><![CDATA[( ($F{historique.document_type_names.NOM_TYPE_DOCUMENT} != null && ($F{historique.document_type_names.NOM_TYPE_DOCUMENT}.length() > 0 ) ?
$F{historique.document_type_names.NOM_TYPE_DOCUMENT}.substring(0,1) : ""))]]></groupExpression>
<groupHeader>
<band height="48">
<textField>
<reportElement x="20" y="13" width="192" height="20"/>
<textElement/>
<textFieldExpression class="java.lang.String"><![CDATA[( ($F{historique.document_type_names.NOM_TYPE_DOCUMENT} != null && ($F{historique.document_type_names.NOM_TYPE_DOCUMENT}.length() > 0 ) ?
$F{historique.document_type_names.NOM_TYPE_DOCUMENT}.substring(0,1) : ""))]]></textFieldExpression>
</textField>
</band>
</groupHeader>
<groupFooter>
<band height="50"/>
</groupFooter>
</group>
<columnHeader>
<band height="25">
<staticText>
<reportElement x="151" y="0" width="198" height="21"/>
<textElement/>
<text><![CDATA[Documents passés dans un état]]></text>
</staticText>
</band>
</columnHeader>
<detail>
<band height="22">
<textField isStretchWithOverflow="true" pattern="#,##0" isBlankWhenNull="true" hyperlinkType="None">
<reportElement key="textField" x="0" y="0" width="81" height="20">
<property name="net.sf.jasperreports.export.pdf.tag.td" value="full"/>
</reportElement>
<box>
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Right"/>
<textFieldExpression class="java.lang.Long"><![CDATA[$F{historique.DOCUMENT.ID_DOCUMENT}]]></textFieldExpression>
</textField>
<textField hyperlinkType="None">
<reportElement x="128" y="2" width="345" height="20"/>
<textElement/>
<textFieldExpression class="java.util.Date"><![CDATA[new Date($F{historique.actions.DATE_OPERATION}.longValue())]]></textFieldExpression>
</textField>
</band>
</detail>
<columnFooter>
<band>
<frame>
<reportElement x="0" y="0" width="552" height="0">
<property name="net.sf.jasperreports.export.pdf.tag.table" value="end"/>
</reportElement>
</frame>
</band>
</columnFooter>
<summary>
<band height="25"/>
</summary>
</jasperReport>
---
Salut,
Dans ton jrxml, tu as:
Pour la déclaration du paramètre "LoggedInUser", il existe pas le type de class
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 <parameter name="LoggedInUser" class="com.jaspersoft.jasperserver.api.metadata.user.domain.User" isForPrompting="false"/>
"com.......User" qui lui doit exister sous le serveur jasper (déclaration dans la section DataType.
Dans iReport, tu as dans paramètres tous les types comme java.lang.Integer etc, ... a toi d'ajouter cette classe. Recherche sur le WEB.
Bon courage![]()
Bonjour,
Je n'ai toujours pas réussi à utiliser la variable LoggedInUser dans le query ni même ailleurs ...
qq'un peut m'aider... cela devient embêtant pour moi ...
Partager