X4 Produktdokumentation

"Download" Action

The Download action is created with the <DownloadAction/> element within <Actions>. The Download action enables to download data from the web application.

The fileId and fileName attributes are required for the <DownloadAction/> element.

In addition to the standard attributes for (7.4.0-en) Actions, the <DownloadAction /> element can have the following attributes:

Attribute

Description

data


Use only, if a base64 file is provided for download!

Defines which data is to be downloaded.

Possible values: Data binding expression

The Data Binding expression must refer to a property of type base64!


fileId

Required. Identifier that can be used by the process developer.

  • Data binding possible.

Possible values: Any string

fileName

Required. Name of the file to be downloaded. It is also used as the file name of the downloaded file by the user.

  • Data binding possible

Possible values: Any string


The "Download" action not only supports the download of data from a Technical Process, but also Base64 type properties can be downloaded. the attribute data must be used instead of the process attribute.

Example Base64 file download
XML
<Property name="data" type="Base64"/>
...
<DownloadAction fileId="tst" fileName="test.ext" data="#data"/>