The object column represents the differents blocks (columns) which you want to place in the detail region. It can exist cases in which you want to divide the detail region in several columns (for example to place a graphic, an image, etc). For this, the columns should be used. The detail region should be divided in as many columns as you wish. The column which has the attribute flow=true will be the column that the system will use for the body of the report.

1 column

<column
    extend='extend'
    flow='true|false'
>
    <report.block /> *
</column>

Remarks

You can place as many columns as you wish, with the condition that one must contain the flow = true.

Example

In this case, the detailed region is divised in the 3 columns, putting the flow in the column of the middle.

Copy
<xsql-script name='sample_column'>
    <body>

<report.document>
  ....
 <detail>
    <column >
        <report.block name='before1'>
            <report.table name='t_img'>
                <body>
                    <report.row>
                        <report.column width='5'>
                            <static type='text'>BEFORE THE BODY</static>
                        </report.column>
                    </report.row>
                </body>
            </report.table>
        </report.block>
    </column>

    <column flow='true'>
        <report.block>
            <report.table name='t_detail'>
                <body>
                    <report.row>
                        <report.column width='5'>
                            <tupple type='text'>country</tupple>
                        </report.column>
                        <report.column width='5'>
                            <tupple type='text'>sales</tupple>
                        </report.column>
                    </report.row>
                </body>
            </report.table>
        </report.block>
    </column>

    <column>
        <report.block name='after1'>
            <report.table name='t_img'>
                <body>
                    <report.row>
                        <report.column width='2'>
                            <static type='text'>AFTER THE BODY</static>
                        </report.column>
                    </report.row>
                </body>
            </report.table>
        </report.block>
    </column>

</detail>
  .....
</report.document>

    </body>
</xsql-script>