Export Action

The <action-export> can be used to export records.

<action-export name="export.sale.order">
  <export name="${name}.xml"
    template="data/ws-test/export-sale-order.tmpl"
    engine="groovy"/>
  <export name="${name}-customer-copy.xml"
    template="data/ws-test/export-sale-order.tmpl"
    engine="groovy"/>
</action-export>
Table 1. Attributes
Name Description

name

name of the action

attachment

whether to attach the exported file to current record

Export file will be directly downloaded by default. If attachment is set to true, the export file will first be attached to the current record, then the user will be prompted if they wish to download the attachement.

The export action requires one or more <export> tasks:

  • <export> - specify an export task

    • name - output file name

    • template - the template to be used to generate output file

    • engine - the template engine to use (groovy, ST)