Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Merged branch "DOC0000070" into parent

Use the <attachment> tag to provide a widget for

...

attaching files to a record.

Use this tag:

  • on the new record form

...

  • to

...

  • enable the functionality of attaching files.
  • with the recordId, tableName attributes to attach a file to an existing record. In this case, the attributes are mandatory.

Available attributes:

AttributeTypeMandatoryDescription
recordIdStringN

Specify the ID of the record to bind it with the attachment widget.

Note

The recordId attribute is mandatory, if tableName is set.


tableNameStringNSpecify the name of the table

...

that has the record

...

the tag is bound to.
isReadOnlyBooleanN

Enable or disable attaching files.

It is possible to attach files via the widget if the attribute value is 'false'.

Set the value to true to disable adding files. The default value is false.

Example:

...

Code Block
languagexml
themeEclipse
titleattachment
linenumberstrue
<attachment tableName={data.table_name} recordId={data.record_id}></attachment>

The template above adds the following element to the page:

Image Added