unable to display Text field and table in a page

0

My requirement is as floows

  1. We need to have a text field in the top.. the data of which comes from java bean
  2. The above should be followed by a table (with some space in btw). the data in table is also fed from java beans
  3. I m able to display the textfield and table individually; and when they are together... 
  4. Either text field is cut and the table comes down in full (when table is give position: fix relative to top;) or.
  5. The text field comes and then we have a streatched white pages (when table is given float like in the above image) 

Any ideas please? Or can u share with me a report with textfield in the top (streachable) and table in the bottom which adjusts its position based on the streaching of the text field that happend???

below is the code

<group name="Group1">
<groupExpression><![CDATA[(int)($V{REPORT_COUNT}/15)]]></groupExpression>
<groupHeader>
<band height="35">
<textField>
<reportElement style="H1" x="0" y="0" width="569" height="28" uuid="423dc34f-3161-496e-a674-2493d0a6a87c"/>
<textFieldExpression><![CDATA[$P{heading1}]]></textFieldExpression>
</textField>
</band>
</groupHeader>
</group>
<group name="Group2">
<groupExpression><![CDATA[(int)($V{REPORT_COUNT}/5)]]></groupExpression>
<groupHeader>
<band height="30">
<textField>
<reportElement style="H2" positionType="Float" isPrintRepeatedValues="false" x="0" y="4" width="569" height="26" forecolor="#000000" uuid="788e24f3-b415-4d19-836c-e641b8e86b78"/>
<textFieldExpression><![CDATA[$P{heading2}]]></textFieldExpression>
</textField>
</band>
</groupHeader>
</group>
<background>
<band splitType="Stretch"/>
</background>
<pageHeader>
<band height="20" splitType="Stretch">
<property name="local_mesure_unitheight" value="mm"/>
<property name="com.jaspersoft.studio.unit.height" value="mm"/>
<frame>
<reportElement style="header" mode="Opaque" x="0" y="0" width="570" height="20" uuid="fca8ae5b-1365-4cb5-ad6b-e0a61659f77e"/>
<textField>
<reportElement style="header" x="0" y="0" width="280" height="20" uuid="2b476830-b379-477c-a0b8-57a0f949137e"/>
<textFieldExpression><![CDATA[$P{profileName}]]></textFieldExpression>
</textField>
<textField>
<reportElement style="header" mode="Transparent" x="390" y="0" width="175" height="20" uuid="aed73997-5f82-494d-8982-a3f0cadb5bdf"/>
<textElement textAlignment="Right">
<font isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$P{company}]]></textFieldExpression>
</textField>
</frame>
</band>
</pageHeader>
<detail>
<band height="208" splitType="Immediate">
<property name="local_mesure_unitheight" value="pixel"/>
<property name="com.jaspersoft.studio.unit.height" value="mm"/>
<property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.FreeLayout"/>
<frame>
<reportElement positionType="Float" stretchType="RelativeToTallestObject" mode="Transparent" x="0" y="10" width="575" height="130" isRemoveLineWhenBlank="true" backcolor="#EAF5FC" uuid="e6711ebe-afe0-4f22-ac01-979c18c66de4">
<property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.FreeLayout"/>
</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>
<textField isStretchWithOverflow="true" evaluationTime="Band">
<reportElement style="para" stretchType="RelativeToTallestObject" x="0" y="0" width="574" height="130" isRemoveLineWhenBlank="true" printWhenGroupChanges="Group1" backcolor="#00FF11" uuid="f011a9fa-53dc-4852-bcc3-dbc83b294d11"/>
<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>
<textFieldExpression><![CDATA[$P{companyDescription}]]></textFieldExpression>
</textField>
</frame>
<frame>
<reportElement positionType="Float" stretchType="RelativeToTallestObject" mode="Transparent" x="0" y="140" width="575" height="60" backcolor="#FFEA00" uuid="84de296d-068b-48d2-a13b-5baf44742515">
<property name="local_mesure_unitheight" value="mm"/>
</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>
<componentElement>
<reportElement key="" positionType="Float" stretchType="RelativeToBandHeight" x="32" y="20" width="510" height="20" printWhenGroupChanges="Group1" forecolor="#808080" backcolor="#CCFF66" uuid="6104460a-8c37-4242-9bda-582bfcff7ec2">
<property name="local_mesure_unitx" value="mm"/>
</reportElement>
<datasetRun subDataset="overviewTableDataset" uuid="7dd799df-bd36-48d9-9b1b-60f924103d0b">
<dataSourceExpression><![CDATA[$P{OVERVIEW_TABLE_DATASOURCE_EXPRESSION}]]></dataSourceExpression>
</datasetRun>
<jr:column width="154" uuid="886d0111-3713-4c0f-9d28-7bc24a1e8544">
<jr:detailCell style="cellStyle" height="24">
<textField isStretchWithOverflow="true">
<reportElement stretchType="RelativeToBandHeight" x="0" y="0" width="150" height="20" uuid="540d4c93-2fc5-460f-90fc-529f96512d83"/>
<textFieldExpression><![CDATA[$F{key}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
<jr:column width="304" uuid="4087dc88-6847-4ed6-9241-9a159e70773d">
<jr:detailCell style="cellStyle" height="24">
<textField isStretchWithOverflow="true">
<reportElement stretchType="RelativeToBandHeight" x="0" y="0" width="300" height="20" uuid="ad4b7bd1-3547-4e7b-a578-e5cc645b09f6"/>
<textFieldExpression><![CDATA[$F{value}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
</jr:table>
</componentElement>
</frame>
</band>
</detail>
..
footer

 

ravi.eze's picture
Joined: Jul 21 2014 - 6:38am
Last seen: 5 years 7 months ago

Guys? any help?

ravi.eze - 5 years 7 months ago

1 Answer:

0

Geeks,

any answers? The project is dragging too long ... 

ravi.eze's picture
Joined: Jul 21 2014 - 6:38am
Last seen: 5 years 7 months ago
Feedback