Ignore:
Timestamp:
Oct 6, 2010, 1:55:47 AM (14 years ago)
Author:
gav
Message:

Change assetDetail report to allow reporting by section and display site in report.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web-app/reports/assetDetail.jrxml

    r653 r687  
    3939        <parameter name="currentUser" class="java.lang.String"/>
    4040        <parameter name="logoUrl" class="java.lang.String"/>
    41         <parameter name="asset" class="java.lang.String"/>
     41        <parameter name="section" class="java.lang.String"/>
    4242        <parameter name="SUBREPORT_DIR" class="java.lang.String" isForPrompting="false">
    4343                <defaultValueExpression><![CDATA["C:\\Documents and Settings\\kromhoutg\\My Documents\\reports\\"]]></defaultValueExpression>
    4444        </parameter>
     45        <parameter name="site" class="java.lang.String"/>
    4546        <queryString language="SQL">
    4647                <![CDATA[]]>
     
    8687        </background>
    8788        <pageHeader>
    88                 <band height="93" splitType="Stretch">
    89                         <textField isStretchWithOverflow="true">
    90                                 <reportElement key="staticText-1" stretchType="RelativeToTallestObject" x="0" y="57" width="340" height="20" isPrintWhenDetailOverflows="true"/>
     89                <band height="60" splitType="Stretch">
     90                        <textField isStretchWithOverflow="true">
     91                                <reportElement key="staticText-1" stretchType="RelativeToTallestObject" x="352" y="9" width="225" height="20" isPrintWhenDetailOverflows="true"/>
    9192                                <textElement textAlignment="Center" verticalAlignment="Top" markup="none">
    9293                                        <font fontName="Serif" size="14"/>
     
    99100                        </image>
    100101                        <textField isStretchWithOverflow="true">
    101                                 <reportElement stretchType="RelativeToTallestObject" x="0" y="77" width="340" height="12" isPrintWhenDetailOverflows="true">
    102                                         <printWhenExpression><![CDATA[$P{asset}.equals( "All" )]]></printWhenExpression>
    103                                 </reportElement>
     102                                <reportElement stretchType="RelativeToTallestObject" x="352" y="29" width="225" height="15" isPrintWhenDetailOverflows="true"/>
    104103                                <textElement textAlignment="Center" verticalAlignment="Middle">
    105                                         <font fontName="Serif" size="8"/>
    106                                 </textElement>
    107                                 <textFieldExpression class="java.lang.String"><![CDATA["For All Assets"]]></textFieldExpression>
     104                                        <font fontName="Serif" size="10"/>
     105                                </textElement>
     106                                <textFieldExpression class="java.lang.String"><![CDATA["Site: "+$P{site}+", "+"Section: "+$P{section}]]></textFieldExpression>
    108107                        </textField>
    109108                </band>
Note: See TracChangeset for help on using the changeset viewer.