Can't get field to show up on first line.

Discussion in 'Java' started by mpiaser, Feb 17, 2015.

  1. mpiaser

    mpiaser

    Joined:
    Feb 16, 2015
    Messages:
    4
    Likes Received:
    0
    The section of code is below. I added the textfield (lines 8-12) for $F{client} but it won't show up on the report. I know that it has a value because if I switch the CDATE[Detail Analysis] and $F{client} sections, the client value shows up on the report but the Detail Analysis literal does not.

    <title>
    <band height="100">
    <staticText>
    <reportElement style="titleStyle" x="0" y="0" width="200" height="30"/>
    <textElement textAlignment="Left" verticalAlignment="Top"/>
    <text><![CDATA[Detail Analysis]]></text>
    </staticText>
    <textField isStretchWithOverflow="true" isBlankWhenNull="true">
    <reportElement style="titleStyle" x="200" y="0" width="200" height="30"/>
    <textElement textAlignment="Left" verticalAlignment="Top"/>
    <textFieldExpression><![CDATA[$F{client}]]></textFieldExpression>
    </textField>
    <staticText>
    <reportElement style="labelStyle" x="0" y="30" width="100" height="15"/>
    <textElement textAlignment="Left"/>
    <text><![CDATA[Reporter:]]></text>
    </staticText>
    <textField isStretchWithOverflow="true" isBlankWhenNull="true">
    <reportElement style="normalStyle" stretchType="RelativeToTallestObject" x="100" y="30" width="300" height="15"/>
    <textElement textAlignment="Left"/>
    <textFieldExpression><![CDATA[$P{reporter}]]></textFieldExpression>
    </textField>
    <staticText>
    <reportElement style="labelStyle" x="0" y="45" width="100" height="15"/>
    <textElement textAlignment="Left"/>
    <text><![CDATA[Billing Month:]]></text>
    </staticText>
    <textField isBlankWhenNull="true">
    <reportElement style="normalStyle" x="100" y="45" width="134" height="12"/>
    <textElement textAlignment="Left"/>
    <textFieldExpression><![CDATA[$F{billing_period_selected}]]></textFieldExpression>
    </textField>
    <textField isBlankWhenNull="true">
    <reportElement x="0" y="80" width="173" height="20"/>
    <textElement/>
    <textFieldExpression><![CDATA[$P{message_when_void}]]></textFieldExpression>
    </textField>
    </band>
    </title>
     
    mpiaser, Feb 17, 2015
    #1
    1. Advertisements

  2. mpiaser

    mpiaser

    Joined:
    Feb 16, 2015
    Messages:
    4
    Likes Received:
    0
    I've made a little more progress. The following code is now showing up the client field on the report. This report is Excel. I need to be able to tell the report to "Merge" the three adjacent cells so that the entire client name can be seen (without expanding the column)

    <textField>
    <reportElement style="titleStyle" x="400" y="0" width="1000" height="30"/>
    <textElement textAlignment="Left" verticalAlignment="Top"/>
    <textFieldExpression><![CDATA[$F{client}]]></textFieldExpression>
    </textField>
     
    mpiaser, Feb 17, 2015
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.