I'm designing a JRXML with the help of XML in Jasper Studio. While parsing through the XML getting "element reaches outside list contents width : x=30, width = 70, list contents width =80".
I'm trying to generate it as field-name, page-name(ons) in the columns.
My XML :
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<menu-compare xmlns:mig="http://www..com/" xmlns:xsi="http://ift.tt/ra1lAU" xsi:schemaLocation="http://www..com">
<menu-info>
<menu type="ons" name="HCOTA"/>
<menu type="ux" name="RTACOF"/>
</menu-info>
<field-details>
<fields existence="both">
<field name="taChrgOffMsg.taChrgOffCrit.funcCode">
<field-type type="ons">
<group-name>cota</group-name>
<page-name>cotacrit</page-name>
<control-type>Combo Box</control-type>
<ui-field>funcCode</ui-field>
<label>FLT000204</label>
<label-desc>Function</label-desc>
<mandatory>Y</mandatory>
</field-type>
<field-type type="ux">
<group-name>Rtacof</group-name>
<page-name>Rtacof_criteria_form</page-name>
<page-name-desc>Transaction A/c. Details</page-name-desc>
<control-type>FinHidden</control-type>
<ui-field>funcCode</ui-field>
<section-structure>group1</section-structure>
<form>criteria</form>
</field-type>
</field>
<field name="taChrgOffMsg.taChrgOffCrit.Acct.foracid">
<field-type type="ons">
<group-name>cota</group-name>
<page-name>cotacrit</page-name>
<control-type>Text Field</control-type>
<ui-field>acctId</ui-field>
<label>FLT000265</label>
<label-desc>A/c. ID</label-desc>
<mandatory>Y</mandatory>
</field-type>
<field-type type="ux">
<group-name>Rtacof</group-name>
<page-name>Rtacof_criteria_form</page-name>
<page-name-desc>Transaction A/c. Details</page-name-desc>
<control-type>FinAccountId</control-type>
<ui-field>acctId$accountId</ui-field>
<label>FLT001251</label>
<label-desc>A/c. ID</label-desc>
<mandatory>Y</mandatory>
<section-structure>group1.section1.subSection1.finRow1.finCell1</section-structure>
<form>criteria</form>
</field-type>
</field>
</fields>
<fields existence="nonMap">
<field>
<field-type type="ons">
<group-name>cota</group-name>
<page-name>cotacrit</page-name>
<control-type>Desc. Label</control-type>
<ui-field>acctCrncy</ui-field>
<label></label>
<mandatory>N</mandatory>
</field-type>
</field>
<field>
<field-type type="ons">
<group-name>cota</group-name>
<page-name>cotacrit</page-name>
<control-type>Desc. Label</control-type>
<ui-field>acctSol</ui-field>
<label></label>
<mandatory>N</mandatory>
</field-type>
</field>
<field>
<field-type type="ons">
<group-name>cota</group-name>
<page-name>cotacrit</page-name>
<control-type>Desc. Label</control-type>
<ui-field>acctName</ui-field>
<label></label>
<mandatory>N</mandatory>
</field-type>
</field>
<field>
<field-type type="ux">
<group-name>Rtacof</group-name>
<page-name>Rtacof_criteria_form</page-name>
<page-name-desc>Transaction A/c. Details</page-name-desc>
<control-type>FinAccountId</control-type>
<ui-field>acctId</ui-field>
<label>FLT001251</label>
<label-desc>A/c. ID</label-desc>
<mandatory>Y</mandatory>
<section-structure>group1.section1.subSection1.finRow1.finCell1</section-structure>
<form>criteria</form>
</field-type>
</field>
<field>
<field-type type="ux">
<group-name>Rtacof</group-name>
<page-name>Rtacof_criteria_form</page-name>
<page-name-desc>Transaction A/c. Details</page-name-desc>
<control-type>FinHidden</control-type>
<ui-field>funcCodeExp</ui-field>
<section-structure>group1</section-structure>
<form>criteria</form>
</field-type>
</field>
<field>
<field-type type="ux">
<group-name>Rtacof</group-name>
<page-name>Rtacof_criteria_form</page-name>
<page-name-desc>Transaction A/c. Details</page-name-desc>
<control-type>FinHidden</control-type>
<ui-field>hchrgeOffAmt</ui-field>
<section-structure>group1</section-structure>
<form>criteria</form>
</field-type>
</field>
</fields>
<fields existence="ux">
<field name="taChrgOffMsg.taChrgOffCrit.Acct.acctName">
<field-type type="ux">
<group-name>Rtacof</group-name>
<page-name>Rtacof_criteria_form</page-name>
<page-name-desc>Transaction A/c. Details</page-name-desc>
<control-type>FinAccountId</control-type>
<ui-field>acctId$accountNameDesc</ui-field>
<label>FLT001251</label>
<label-desc>A/c. ID</label-desc>
<mandatory>Y</mandatory>
<section-structure>group1.section1.subSection1.finRow1.finCell1</section-structure>
<form>criteria</form>
</field-type>
</field>
<field name="taChrgOffMsg.taChrgOffCrit.Acct.crncyCode">
<field-type type="ux">
<group-name>Rtacof</group-name>
<page-name>Rtacof_criteria_form</page-name>
<page-name-desc>Transaction A/c. Details</page-name-desc>
<control-type>FinAccountId</control-type>
<ui-field>acctId$currencyDesc</ui-field>
<label>FLT001251</label>
<label-desc>A/c. ID</label-desc>
<mandatory>Y</mandatory>
<section-structure>group1.section1.subSection1.finRow1.finCell1</section-structure>
<form>criteria</form>
</field-type>
</field>
</fields>
</field-details>
</menu-compare>
JRXML :
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version last-->
<jasperReport xmlns="http://ift.tt/1bXYvZE" xmlns:xsi="http://ift.tt/ra1lAU" xsi:schemaLocation="http://ift.tt/1bXYvZE http://ift.tt/18OQfHh" name="New_2" language="groovy" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="e2caa880-33d5-43d6-868e-f7aedb8df379">
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="New Data Adapter (5)"/>
<subDataset name="Dataset1" uuid="5192cb9e-57c0-4ee2-97bd-e413cb5c90ee">
<queryString>
<![CDATA[]]>
</queryString>
<field name="field" class="java.lang.String">
<fieldDescription><![CDATA[@name]]></fieldDescription>
</field>
</subDataset>
<subDataset name="Dataset2" uuid="6f285f59-ba82-431a-a0d1-e4ad91c9e208">
<queryString>
<![CDATA[]]>
</queryString>
<field name="page-name" class="java.lang.String">
<fieldDescription><![CDATA[/fields/field/field-type[@type = "ons"]/page-name]]></fieldDescription>
</field>
<field name="control-type-new3-ux" class="java.lang.String">
<fieldDescription><![CDATA[/fields/field/field-type[@type = "ux"]/control-type]]></fieldDescription>
</field>
</subDataset>
<queryString language="xPath">
<![CDATA[/menu-compare/field-details/fields]]>
</queryString>
<field name="fields" class="java.lang.String">
<fieldDescription><![CDATA[@existence]]></fieldDescription>
</field>
<background>
<band splitType="Stretch"/>
</background>
<title>
<band height="79" splitType="Stretch"/>
</title>
<pageHeader>
<band height="35" splitType="Stretch"/>
</pageHeader>
<columnHeader>
<band height="4" splitType="Stretch"/>
</columnHeader>
<detail>
<band height="177" splitType="Stretch">
<componentElement>
<reportElement uuid="81c7b8e5-ced5-4422-8449-26fe47dd48f9" x="80" y="40" width="80" height="60"/>
<jr:list xmlns:jr="http://ift.tt/1cl9b3L" xsi:schemaLocation="http://ift.tt/1cl9b3L http://ift.tt/1cl9b3P" printOrder="Vertical">
<datasetRun subDataset="Dataset1" uuid="957faa10-2e9a-416f-9021-bcf4573cdce2">
<dataSourceExpression><![CDATA[$P{REPORT_DATA_SOURCE}.subDataSource("/fields/field")]]></dataSourceExpression>
</datasetRun>
<jr:listContents height="60" width="80">
<textField>
<reportElement uuid="2fabc937-02eb-4f52-b567-da556145f167" x="30" y="10" width="70" height="30"/>
<textElement/>
<textFieldExpression><![CDATA[$F{field}]]></textFieldExpression>
</textField>
</jr:listContents>
</jr:list>
</componentElement>
<textField>
<reportElement uuid="5a48ef7e-84b1-484f-a01b-27a297cb3bfc" x="0" y="47" width="70" height="30"/>
<textElement/>
<textFieldExpression><![CDATA[$F{fields}]]></textFieldExpression>
</textField>
<componentElement>
<reportElement uuid="f3745f76-848e-468e-9bae-1633c7def5d7" x="180" y="47" width="130" height="103"/>
<jr:list xmlns:jr="http://ift.tt/1cl9b3L" xsi:schemaLocation="http://ift.tt/1cl9b3L http://ift.tt/1cl9b3P" printOrder="Vertical">
<datasetRun subDataset="Dataset2" uuid="ad280606-c56e-4e2d-a7b2-a613d0773d35">
<dataSourceExpression><![CDATA[$P{REPORT_DATA_SOURCE}.subDataSource("/fields/field/field-type")]]></dataSourceExpression>
</datasetRun>
<jr:listContents height="103" width="130">
<textField>
<reportElement uuid="50dda53b-b4a4-4d42-b31e-3d5ca09b83e1" x="20" y="20" width="70" height="30"/>
<textElement/>
<textFieldExpression><![CDATA[$F{page-name}]]></textFieldExpression>
</textField>
</jr:listContents>
</jr:list>
</componentElement>
</band>
</detail>
<columnFooter>
<band height="45" splitType="Stretch"/>
</columnFooter>
<pageFooter>
<band height="54" splitType="Stretch"/>
</pageFooter>
<summary>
<band height="42" splitType="Stretch"/>
</summary>
</jasperReport>
No comments:
Post a Comment