With the Используйте тэг <attachment> tag you can provide a widget for uploading files to a record.
Use this tag:
- on the form page to attach files to a new record created via the form.
- with the recordId, tableName attributes to attach a file to an existing record. In this case, the attributes are mandatory.
Available attributes:
, чтобы добавить виджет для добавления файлов к записи.
Используйте этот тэг:
- на странице формы, чтобы прикреплять файлы к созданной на ней записи
- вместе с атрибутами recordId, tableName для прикрепления файла к существующей записи. Атрибуты в этом случае обязательны.
Атрибут | Тип | Обязательный | Описание | ||
---|---|---|---|---|---|
recordId | String | Нет | Укажите ID записи, с которой связать виджет для добавления вложенных файлов.
| ||
Attribute | Type | Mandatory | Description | ||
recordId | String | N | Specify the ID of the record to bind it with the attachment widget.
| ||
tableName | String | N | Нет | Укажите название таблицы, в которой расположена запись с привязанным тэгомSpecify the name of the table for the record to which this tag is bound. | |
isReadOnly | Boolean | N | Нет | Активируйте и деактивируйте возможность добавления файлов. Файлы можно добавлять, если значение атрибута "false". Возможность добавления отключения, если значение атрибута "true" Enable or disable attaching files. It is possible to attach files via the widget if the attribute value is 'false'. It is not possible to attach files via the widget if the attribute value is 'true'. |
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
<attachment tableName={data.table_name} recordId={data.record_id}></attachment> |
...