Mapfish Print 3 JSON datasource generates empty table fields












0














I've been struggling for the last week with this issue and I couldn't solve it.
Using Mapfish Print 3 on Tomcat with browser I'm trying to print a .jrxml template produced in Jaspersoft Studio. Datasource for the template is a .json, containing tables.



When I print the pdf from jaspersoft studio everything works fine, but when I print it from Mapfish, the fields of my tables are not populated, so that I have correct table column names and below just one row filled with "null".



Tomcat log throws this error:



gradle: 09:34:01.835 [PrintJobManager-3] WARN  o.m.p.o.AbstractJasperReportOutputFormat - The field letter in prova_json.jrxml is not available in at least one of the rows in the datasource.  This may not be an error.
gradle: 09:34:01.835 [PrintJobManager-3] WARN o.m.p.o.AbstractJasperReportOutputFormat - The field number in prova_json.jrxml is not available in at least one of the rows in the datasource. This may not be an error.


Actual result
Desired result



I looked into the template data adapters, .yaml and .json configuration, but nothing. I'm quite new at this and I might be forgetting some basic stuff.



I would be really glad if someone could help.



Many thanks



This is my .yaml:



templates:
A4 portrait: !template
reportTemplate: prova_json.jrxml
attributes:
title: !string
default: "Mytable"
processors:
- !reportBuilder
directory: '.'


This is my .json:



{
"layout": "A4 portrait",
"outputFormat": "pdf",
"attributes": {},
"example":[
{"letter":"A", "number":"1"},
{"letter":"B", "number":"2"},
{"letter":"C", "number":"3"}
]
}


This is my .jrxml:



<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.6.0.final using JasperReports Library version 6.6.0 -->
<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="prova_json" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="443dccec-8ac9-486f-b9e2-bf8809609b24">
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="requestData"/>
<parameter name="title" class="java.lang.String"/>
<queryString language="json">
<![CDATA[example]]>
</queryString>
<field name="letter" class="java.lang.String">
<property name="net.sf.jasperreports.json.field.expression" value="letter"/>
<fieldDescription><![CDATA[letter]]></fieldDescription>
</field>
<field name="number" class="java.lang.Integer">
<property name="net.sf.jasperreports.json.field.expression" value="number"/>
<fieldDescription><![CDATA[number]]></fieldDescription>
</field>
<background>
<band splitType="Stretch"/>
</background>
<title>
<band height="50" splitType="Stretch">
<textField>
<reportElement x="230" y="20" width="100" height="30" uuid="e15aa58f-c3f8-415c-b783-9d99cd9fd936"/>
<box>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$P{title}]]></textFieldExpression>
</textField>
</band>
</title>
<pageHeader>
<band height="35" splitType="Stretch"/>
</pageHeader>
<columnHeader>
<band height="30" splitType="Stretch">
<staticText>
<reportElement x="100" y="0" width="180" height="30" uuid="710e904e-be4b-4827-bed5-cba2caa930af">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="fca73b4c-ec21-4d8e-8103-e847788aa7d0"/>
</reportElement>
<box>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<text><![CDATA[letter]]></text>
</staticText>
<staticText>
<reportElement x="280" y="0" width="175" height="30" uuid="2434f475-1bf1-428b-9eda-428133d8f1e3">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="70d93515-4ef5-4746-acac-b96c8b4f43c9"/>
</reportElement>
<box>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<text><![CDATA[number]]></text>
</staticText>
</band>
</columnHeader>
<detail>
<band height="30" splitType="Stretch">
<textField>
<reportElement x="100" y="0" width="180" height="30" uuid="bf808ed8-1e3e-4d6f-9e62-03c2491b89cd">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="fca73b4c-ec21-4d8e-8103-e847788aa7d0"/>
</reportElement>
<box>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{letter}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="280" y="0" width="175" height="30" uuid="e53139cc-0aee-4f5a-8b45-55123ae024fd">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="70d93515-4ef5-4746-acac-b96c8b4f43c9"/>
</reportElement>
<box>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{number}]]></textFieldExpression>
</textField>
</band>
</detail>
<columnFooter>
<band height="45" splitType="Stretch"/>
</columnFooter>
<pageFooter>
<band height="54" splitType="Stretch"/>
</pageFooter>
<summary>
<band height="42" splitType="Stretch"/>
</summary>
</jasperReport>









share|improve this question



























    0














    I've been struggling for the last week with this issue and I couldn't solve it.
    Using Mapfish Print 3 on Tomcat with browser I'm trying to print a .jrxml template produced in Jaspersoft Studio. Datasource for the template is a .json, containing tables.



    When I print the pdf from jaspersoft studio everything works fine, but when I print it from Mapfish, the fields of my tables are not populated, so that I have correct table column names and below just one row filled with "null".



    Tomcat log throws this error:



    gradle: 09:34:01.835 [PrintJobManager-3] WARN  o.m.p.o.AbstractJasperReportOutputFormat - The field letter in prova_json.jrxml is not available in at least one of the rows in the datasource.  This may not be an error.
    gradle: 09:34:01.835 [PrintJobManager-3] WARN o.m.p.o.AbstractJasperReportOutputFormat - The field number in prova_json.jrxml is not available in at least one of the rows in the datasource. This may not be an error.


    Actual result
    Desired result



    I looked into the template data adapters, .yaml and .json configuration, but nothing. I'm quite new at this and I might be forgetting some basic stuff.



    I would be really glad if someone could help.



    Many thanks



    This is my .yaml:



    templates:
    A4 portrait: !template
    reportTemplate: prova_json.jrxml
    attributes:
    title: !string
    default: "Mytable"
    processors:
    - !reportBuilder
    directory: '.'


    This is my .json:



    {
    "layout": "A4 portrait",
    "outputFormat": "pdf",
    "attributes": {},
    "example":[
    {"letter":"A", "number":"1"},
    {"letter":"B", "number":"2"},
    {"letter":"C", "number":"3"}
    ]
    }


    This is my .jrxml:



    <?xml version="1.0" encoding="UTF-8"?>
    <!-- Created with Jaspersoft Studio version 6.6.0.final using JasperReports Library version 6.6.0 -->
    <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="prova_json" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="443dccec-8ac9-486f-b9e2-bf8809609b24">
    <property name="com.jaspersoft.studio.data.defaultdataadapter" value="requestData"/>
    <parameter name="title" class="java.lang.String"/>
    <queryString language="json">
    <![CDATA[example]]>
    </queryString>
    <field name="letter" class="java.lang.String">
    <property name="net.sf.jasperreports.json.field.expression" value="letter"/>
    <fieldDescription><![CDATA[letter]]></fieldDescription>
    </field>
    <field name="number" class="java.lang.Integer">
    <property name="net.sf.jasperreports.json.field.expression" value="number"/>
    <fieldDescription><![CDATA[number]]></fieldDescription>
    </field>
    <background>
    <band splitType="Stretch"/>
    </background>
    <title>
    <band height="50" splitType="Stretch">
    <textField>
    <reportElement x="230" y="20" width="100" height="30" uuid="e15aa58f-c3f8-415c-b783-9d99cd9fd936"/>
    <box>
    <topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
    <leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
    <bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
    <rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
    </box>
    <textElement textAlignment="Center" verticalAlignment="Middle"/>
    <textFieldExpression><![CDATA[$P{title}]]></textFieldExpression>
    </textField>
    </band>
    </title>
    <pageHeader>
    <band height="35" splitType="Stretch"/>
    </pageHeader>
    <columnHeader>
    <band height="30" splitType="Stretch">
    <staticText>
    <reportElement x="100" y="0" width="180" height="30" uuid="710e904e-be4b-4827-bed5-cba2caa930af">
    <property name="com.jaspersoft.studio.spreadsheet.connectionID" value="fca73b4c-ec21-4d8e-8103-e847788aa7d0"/>
    </reportElement>
    <box>
    <topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
    <leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
    <bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
    <rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
    </box>
    <textElement textAlignment="Center" verticalAlignment="Middle"/>
    <text><![CDATA[letter]]></text>
    </staticText>
    <staticText>
    <reportElement x="280" y="0" width="175" height="30" uuid="2434f475-1bf1-428b-9eda-428133d8f1e3">
    <property name="com.jaspersoft.studio.spreadsheet.connectionID" value="70d93515-4ef5-4746-acac-b96c8b4f43c9"/>
    </reportElement>
    <box>
    <topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
    <leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
    <bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
    <rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
    </box>
    <textElement textAlignment="Center" verticalAlignment="Middle"/>
    <text><![CDATA[number]]></text>
    </staticText>
    </band>
    </columnHeader>
    <detail>
    <band height="30" splitType="Stretch">
    <textField>
    <reportElement x="100" y="0" width="180" height="30" uuid="bf808ed8-1e3e-4d6f-9e62-03c2491b89cd">
    <property name="com.jaspersoft.studio.spreadsheet.connectionID" value="fca73b4c-ec21-4d8e-8103-e847788aa7d0"/>
    </reportElement>
    <box>
    <topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
    <leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
    <bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
    <rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
    </box>
    <textElement textAlignment="Center" verticalAlignment="Middle"/>
    <textFieldExpression><![CDATA[$F{letter}]]></textFieldExpression>
    </textField>
    <textField>
    <reportElement x="280" y="0" width="175" height="30" uuid="e53139cc-0aee-4f5a-8b45-55123ae024fd">
    <property name="com.jaspersoft.studio.spreadsheet.connectionID" value="70d93515-4ef5-4746-acac-b96c8b4f43c9"/>
    </reportElement>
    <box>
    <topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
    <leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
    <bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
    <rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
    </box>
    <textElement textAlignment="Center" verticalAlignment="Middle"/>
    <textFieldExpression><![CDATA[$F{number}]]></textFieldExpression>
    </textField>
    </band>
    </detail>
    <columnFooter>
    <band height="45" splitType="Stretch"/>
    </columnFooter>
    <pageFooter>
    <band height="54" splitType="Stretch"/>
    </pageFooter>
    <summary>
    <band height="42" splitType="Stretch"/>
    </summary>
    </jasperReport>









    share|improve this question

























      0












      0








      0







      I've been struggling for the last week with this issue and I couldn't solve it.
      Using Mapfish Print 3 on Tomcat with browser I'm trying to print a .jrxml template produced in Jaspersoft Studio. Datasource for the template is a .json, containing tables.



      When I print the pdf from jaspersoft studio everything works fine, but when I print it from Mapfish, the fields of my tables are not populated, so that I have correct table column names and below just one row filled with "null".



      Tomcat log throws this error:



      gradle: 09:34:01.835 [PrintJobManager-3] WARN  o.m.p.o.AbstractJasperReportOutputFormat - The field letter in prova_json.jrxml is not available in at least one of the rows in the datasource.  This may not be an error.
      gradle: 09:34:01.835 [PrintJobManager-3] WARN o.m.p.o.AbstractJasperReportOutputFormat - The field number in prova_json.jrxml is not available in at least one of the rows in the datasource. This may not be an error.


      Actual result
      Desired result



      I looked into the template data adapters, .yaml and .json configuration, but nothing. I'm quite new at this and I might be forgetting some basic stuff.



      I would be really glad if someone could help.



      Many thanks



      This is my .yaml:



      templates:
      A4 portrait: !template
      reportTemplate: prova_json.jrxml
      attributes:
      title: !string
      default: "Mytable"
      processors:
      - !reportBuilder
      directory: '.'


      This is my .json:



      {
      "layout": "A4 portrait",
      "outputFormat": "pdf",
      "attributes": {},
      "example":[
      {"letter":"A", "number":"1"},
      {"letter":"B", "number":"2"},
      {"letter":"C", "number":"3"}
      ]
      }


      This is my .jrxml:



      <?xml version="1.0" encoding="UTF-8"?>
      <!-- Created with Jaspersoft Studio version 6.6.0.final using JasperReports Library version 6.6.0 -->
      <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="prova_json" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="443dccec-8ac9-486f-b9e2-bf8809609b24">
      <property name="com.jaspersoft.studio.data.defaultdataadapter" value="requestData"/>
      <parameter name="title" class="java.lang.String"/>
      <queryString language="json">
      <![CDATA[example]]>
      </queryString>
      <field name="letter" class="java.lang.String">
      <property name="net.sf.jasperreports.json.field.expression" value="letter"/>
      <fieldDescription><![CDATA[letter]]></fieldDescription>
      </field>
      <field name="number" class="java.lang.Integer">
      <property name="net.sf.jasperreports.json.field.expression" value="number"/>
      <fieldDescription><![CDATA[number]]></fieldDescription>
      </field>
      <background>
      <band splitType="Stretch"/>
      </background>
      <title>
      <band height="50" splitType="Stretch">
      <textField>
      <reportElement x="230" y="20" width="100" height="30" uuid="e15aa58f-c3f8-415c-b783-9d99cd9fd936"/>
      <box>
      <topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
      <leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
      <bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
      <rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
      </box>
      <textElement textAlignment="Center" verticalAlignment="Middle"/>
      <textFieldExpression><![CDATA[$P{title}]]></textFieldExpression>
      </textField>
      </band>
      </title>
      <pageHeader>
      <band height="35" splitType="Stretch"/>
      </pageHeader>
      <columnHeader>
      <band height="30" splitType="Stretch">
      <staticText>
      <reportElement x="100" y="0" width="180" height="30" uuid="710e904e-be4b-4827-bed5-cba2caa930af">
      <property name="com.jaspersoft.studio.spreadsheet.connectionID" value="fca73b4c-ec21-4d8e-8103-e847788aa7d0"/>
      </reportElement>
      <box>
      <topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
      <leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
      <bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
      <rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
      </box>
      <textElement textAlignment="Center" verticalAlignment="Middle"/>
      <text><![CDATA[letter]]></text>
      </staticText>
      <staticText>
      <reportElement x="280" y="0" width="175" height="30" uuid="2434f475-1bf1-428b-9eda-428133d8f1e3">
      <property name="com.jaspersoft.studio.spreadsheet.connectionID" value="70d93515-4ef5-4746-acac-b96c8b4f43c9"/>
      </reportElement>
      <box>
      <topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
      <leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
      <bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
      <rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
      </box>
      <textElement textAlignment="Center" verticalAlignment="Middle"/>
      <text><![CDATA[number]]></text>
      </staticText>
      </band>
      </columnHeader>
      <detail>
      <band height="30" splitType="Stretch">
      <textField>
      <reportElement x="100" y="0" width="180" height="30" uuid="bf808ed8-1e3e-4d6f-9e62-03c2491b89cd">
      <property name="com.jaspersoft.studio.spreadsheet.connectionID" value="fca73b4c-ec21-4d8e-8103-e847788aa7d0"/>
      </reportElement>
      <box>
      <topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
      <leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
      <bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
      <rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
      </box>
      <textElement textAlignment="Center" verticalAlignment="Middle"/>
      <textFieldExpression><![CDATA[$F{letter}]]></textFieldExpression>
      </textField>
      <textField>
      <reportElement x="280" y="0" width="175" height="30" uuid="e53139cc-0aee-4f5a-8b45-55123ae024fd">
      <property name="com.jaspersoft.studio.spreadsheet.connectionID" value="70d93515-4ef5-4746-acac-b96c8b4f43c9"/>
      </reportElement>
      <box>
      <topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
      <leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
      <bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
      <rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
      </box>
      <textElement textAlignment="Center" verticalAlignment="Middle"/>
      <textFieldExpression><![CDATA[$F{number}]]></textFieldExpression>
      </textField>
      </band>
      </detail>
      <columnFooter>
      <band height="45" splitType="Stretch"/>
      </columnFooter>
      <pageFooter>
      <band height="54" splitType="Stretch"/>
      </pageFooter>
      <summary>
      <band height="42" splitType="Stretch"/>
      </summary>
      </jasperReport>









      share|improve this question













      I've been struggling for the last week with this issue and I couldn't solve it.
      Using Mapfish Print 3 on Tomcat with browser I'm trying to print a .jrxml template produced in Jaspersoft Studio. Datasource for the template is a .json, containing tables.



      When I print the pdf from jaspersoft studio everything works fine, but when I print it from Mapfish, the fields of my tables are not populated, so that I have correct table column names and below just one row filled with "null".



      Tomcat log throws this error:



      gradle: 09:34:01.835 [PrintJobManager-3] WARN  o.m.p.o.AbstractJasperReportOutputFormat - The field letter in prova_json.jrxml is not available in at least one of the rows in the datasource.  This may not be an error.
      gradle: 09:34:01.835 [PrintJobManager-3] WARN o.m.p.o.AbstractJasperReportOutputFormat - The field number in prova_json.jrxml is not available in at least one of the rows in the datasource. This may not be an error.


      Actual result
      Desired result



      I looked into the template data adapters, .yaml and .json configuration, but nothing. I'm quite new at this and I might be forgetting some basic stuff.



      I would be really glad if someone could help.



      Many thanks



      This is my .yaml:



      templates:
      A4 portrait: !template
      reportTemplate: prova_json.jrxml
      attributes:
      title: !string
      default: "Mytable"
      processors:
      - !reportBuilder
      directory: '.'


      This is my .json:



      {
      "layout": "A4 portrait",
      "outputFormat": "pdf",
      "attributes": {},
      "example":[
      {"letter":"A", "number":"1"},
      {"letter":"B", "number":"2"},
      {"letter":"C", "number":"3"}
      ]
      }


      This is my .jrxml:



      <?xml version="1.0" encoding="UTF-8"?>
      <!-- Created with Jaspersoft Studio version 6.6.0.final using JasperReports Library version 6.6.0 -->
      <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="prova_json" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="443dccec-8ac9-486f-b9e2-bf8809609b24">
      <property name="com.jaspersoft.studio.data.defaultdataadapter" value="requestData"/>
      <parameter name="title" class="java.lang.String"/>
      <queryString language="json">
      <![CDATA[example]]>
      </queryString>
      <field name="letter" class="java.lang.String">
      <property name="net.sf.jasperreports.json.field.expression" value="letter"/>
      <fieldDescription><![CDATA[letter]]></fieldDescription>
      </field>
      <field name="number" class="java.lang.Integer">
      <property name="net.sf.jasperreports.json.field.expression" value="number"/>
      <fieldDescription><![CDATA[number]]></fieldDescription>
      </field>
      <background>
      <band splitType="Stretch"/>
      </background>
      <title>
      <band height="50" splitType="Stretch">
      <textField>
      <reportElement x="230" y="20" width="100" height="30" uuid="e15aa58f-c3f8-415c-b783-9d99cd9fd936"/>
      <box>
      <topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
      <leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
      <bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
      <rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
      </box>
      <textElement textAlignment="Center" verticalAlignment="Middle"/>
      <textFieldExpression><![CDATA[$P{title}]]></textFieldExpression>
      </textField>
      </band>
      </title>
      <pageHeader>
      <band height="35" splitType="Stretch"/>
      </pageHeader>
      <columnHeader>
      <band height="30" splitType="Stretch">
      <staticText>
      <reportElement x="100" y="0" width="180" height="30" uuid="710e904e-be4b-4827-bed5-cba2caa930af">
      <property name="com.jaspersoft.studio.spreadsheet.connectionID" value="fca73b4c-ec21-4d8e-8103-e847788aa7d0"/>
      </reportElement>
      <box>
      <topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
      <leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
      <bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
      <rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
      </box>
      <textElement textAlignment="Center" verticalAlignment="Middle"/>
      <text><![CDATA[letter]]></text>
      </staticText>
      <staticText>
      <reportElement x="280" y="0" width="175" height="30" uuid="2434f475-1bf1-428b-9eda-428133d8f1e3">
      <property name="com.jaspersoft.studio.spreadsheet.connectionID" value="70d93515-4ef5-4746-acac-b96c8b4f43c9"/>
      </reportElement>
      <box>
      <topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
      <leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
      <bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
      <rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
      </box>
      <textElement textAlignment="Center" verticalAlignment="Middle"/>
      <text><![CDATA[number]]></text>
      </staticText>
      </band>
      </columnHeader>
      <detail>
      <band height="30" splitType="Stretch">
      <textField>
      <reportElement x="100" y="0" width="180" height="30" uuid="bf808ed8-1e3e-4d6f-9e62-03c2491b89cd">
      <property name="com.jaspersoft.studio.spreadsheet.connectionID" value="fca73b4c-ec21-4d8e-8103-e847788aa7d0"/>
      </reportElement>
      <box>
      <topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
      <leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
      <bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
      <rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
      </box>
      <textElement textAlignment="Center" verticalAlignment="Middle"/>
      <textFieldExpression><![CDATA[$F{letter}]]></textFieldExpression>
      </textField>
      <textField>
      <reportElement x="280" y="0" width="175" height="30" uuid="e53139cc-0aee-4f5a-8b45-55123ae024fd">
      <property name="com.jaspersoft.studio.spreadsheet.connectionID" value="70d93515-4ef5-4746-acac-b96c8b4f43c9"/>
      </reportElement>
      <box>
      <topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
      <leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
      <bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
      <rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
      </box>
      <textElement textAlignment="Center" verticalAlignment="Middle"/>
      <textFieldExpression><![CDATA[$F{number}]]></textFieldExpression>
      </textField>
      </band>
      </detail>
      <columnFooter>
      <band height="45" splitType="Stretch"/>
      </columnFooter>
      <pageFooter>
      <band height="54" splitType="Stretch"/>
      </pageFooter>
      <summary>
      <band height="42" splitType="Stretch"/>
      </summary>
      </jasperReport>






      json datasource mapfish






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 21 at 9:28









      Tom John

      12




      12





























          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53408898%2fmapfish-print-3-json-datasource-generates-empty-table-fields%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53408898%2fmapfish-print-3-json-datasource-generates-empty-table-fields%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          404 Error Contact Form 7 ajax form submitting

          How to know if a Active Directory user can login interactively

          TypeError: fit_transform() missing 1 required positional argument: 'X'