<layout>
XML tagThe <layout>
tag delimits
the beginning and ending of the layout of the report definition.
<layout>
content_of_layout
</layout>
The following example shows the layout segment of an XML report definition. This is not a complete layout model and would have to be applied as a customization to an .rdf file:
<layout>
<section name="main">
<field name="f_trade_date"
source="trade_date"
formatMask="MM/DD/RR"/>
<field name="F_Mincurrent_pricePersymbol"
source="Mincurrent_pricePersymbol"
lineColor="black" fillColor="r100g50b50"/>
<field name="F_Maxcurrent_pricePersymbol"
source="Maxcurrent_pricePersymbol"
lineColor="black" fillColor="r100g50b50"/>
</section>
</layout>
The following example shows another layout segment of an XML report definition. This is a complete layout and, assuming the appropriate data model is in place, it could stand by itself, without being applied to an .RDF file.
<layout>
<section name="main">
<matrix name="M_video_sales" template="corp10.tdf">
<group>
<field name="f_quarter" source="quarter"
label="Quarter:" font="Arial" fontSize="8"
formatTrigger="F_quarterFormatTrigger">
<labelAttribute font="Arial" fontSize="8"
fontStyle="bold" textColor="black"/>
</field>
<field name="f_SumTOTAL_SALESPerQUARTER"
source="SumTOTAL_SALESPerQUARTER"
label="Qtrly: Sales: " font="Arial"
fontSize="8" fontStyle="bold"
formatMask="LNNNGNNNGNNNGNN0D00">
<labelAttribute font="Arial" fontSize="8"
fontStyle="bold" textColor="black"/>
</field>
<field name="f_SumTOTAL_COSTPerQUARTER"
source="SumTOTAL_COSTPerQUARTER"
label="Costs: " font="Arial" fontSize="8"
fontStyle="bold" formatMask="LNNNGNNNGNNNGNN0D00">
<labelAttribute font="Arial" fontSize="8"
fontStyle="bold" textColor="black"/>
</field>
<field name="f_SumTOTAL_PROFITPerQUARTER"
source="SumTOTAL_PROFITPerQUARTER"
label="Profits: " font="Arial"
fontSize="8" fontStyle="bold"
formatMask="LNNNGNNNGNNNGNN0D00">
<labelAttribute font="Arial" fontSize="8"
fontStyle="bold" textColor="black"/>
</field>
</group>
<group>
<field name="f_state" source="state"
label="State:" font="Arial" fontSize="8">
<labelAttribute font="Arial" fontSize="8"
fontStyle="bold" textColor="black"/>
</field>
</group>
<matrixCol name="g_city">
<field name="f_city" source="city"
label="City: "
font="Arial" fontSize="8" textColor="yellow"
formatTrigger="F_cityFormatTrigger"/>
<field name="f_SumTOTAL_SALESPerCITY"
source="SumTOTAL_SALESPerCITY"
label="Sales: " font="Arial"
fontSize="8" fontStyle="bold"
textColor="yellow" formatMask="LNNNGNNNGNNNGNN0D00">
<labelAttribute font="Arial" fontSize="8"
fontStyle="bold" textColor="yellow"/>
</field>
<field name="f_SumTOTAL_COSTPerCITY"
source="SumTOTAL_COSTPerCITY"
label="Sales: " font="Arial"
fontSize="8" fontStyle="bold"
textColor="yellow" formatMask="LNNNGNNNGNNNGNN0D00">
<labelAttribute font="Arial" fontSize="8"
fontStyle="bold" textColor="yellow"/>
</field>
<field name="f_SumTOTAL_PROFITPerCITY"
source="SumTOTAL_PROFITPerCITY"
label="Sales: " font="Arial"
fontSize="8" fontStyle="bold"
textColor="yellow" formatMask="LNNNGNNNGNNNGNN0D00">
<labelAttribute font="Arial" fontSize="8"
fontStyle="bold" textColor="yellow"/>
</field>
</matrixCol>
<matrixRow name="g_product_category">
<field name="f_product_category" source="product_category"
label="Product Category" font="Arial"
fontSize="8"/>
</matrixRow>
<matrixCell name="g_total_sales">
<field name="f_total_sales" source="total_sales"
label="Total Sales"
font="Arial" fontSize="8" lineColor="noLine"
formatMask="LNNNGNNNGNNNGNN0D00"/>
<field name="f_total_cost" source="total_cost"
label="Total Cost"
font="Arial" fontSize="8" lineColor="noLine"
formatMask="LNNNGNNNGNNNGNN0D00"/>
<field name="f_total_profit" source="total_profit"
label="Total Profit"
font="Arial" fontSize="8" lineColor="noLine"
formatMask="LNNNGNNNGNNNGNN0D00"/>
</matrixCell>
</matrix>
</section>
</layout>
Copyright © 1984, 2005, Oracle. All rights reserved.