Attachment
- Last UpdatedJan 21, 2025
- 7 minute read
Use Attachment control to attach a file in your form.
Properties
The properties for the control are grouped under the following tabs:
Basic
|
Property |
Description |
|---|---|
|
Name |
Name that identifies the control. This value is also used for the label of the control. |
|
XML Node |
XML node mapped to the control. Use this value to map a list to a form and a form to a workflow.
Note: |
|
Description |
Description for the control. |
|
Tooltip |
Message that appears when the pointer hovers over the control. |
Appearance
|
Property |
Description |
|---|---|
|
Enable |
Enable or disable the control.
|
|
Visible |
Show or hide the control.
|
|
Label Position |
Position of the label for the control.
Note: |
|
Label-Control Area |
Area occupied by the label and the control in percentage.
Note: |
|
Retain Space |
Reserve or remove space when the control is hidden.
|
|
File Name Length |
Length of characters for the file name. The default value is 0. For example, if the value is set to 8 and the file name of the attachment has 12 characters, then only the first 8 characters of the file name are retained. If the file name of the attachment has 6 characters, then the file name is retained as is. The abbreviated file name is displayed in the form. However, when you download the file, the name of the file is retained as is. Note: If the value is 0, then the file name is retained as is. |
Validation
|
Property |
Description |
|---|---|
|
Attachment Type |
File type of attachment for the control.
Note: |
|
Custom Attachment Type |
Custom file type of attachment for the control. For example, .txt;.rtf to restrict the file types of attachment to text and rich text formats. Note: This value disables the Attachment Type property and restricts the allowed file type to the value specified. |
|
Show Delete Confirmation Message |
Show or hide the custom delete confirmation message for the control.
|
|
Delete Confirmation Message |
Delete confirmation message for the control. Note: This property is applicable only when the Show Delete Confirmation Message property is set to Yes. |
Advanced
|
Property |
Description |
|---|---|
|
On Data Change |
Run a script when value of the control changes. For more information, see scripting guidelines for On Data Change property. |
|
ID |
Reference identification code for the control. This value is automatically generated and cannot be changed. |
|
Storage Type |
Storage type of attachment for the control.
Note: The uploaded file name should be 87 characters long (120 - 33 = 87) for Ingestion. If the file name contains special characters or spaces, each of these would count as three characters. Therefore, it is advisable to keep file names short when uploading them to AVEVA Drive. |
|
Security Mode |
Set the security mode to None or Encryption to secure the attachment.
Note: This property is applicable only when the Storage Type property is set to Database. |
|
Persist File Name |
Keep the file name of the attachment as the header.
Note: This property is applicable only when the Storage Type property is set to Database. |
|
Persist Custom File Name |
ID of the Text control whose value is used as the header. If you do not want to persist the file name, then you can persist a custom file name in another control. The Persist Custom File Name property takes the ID of a Text control where it can store the attached file name information. You can then get the file name from this control through scripts. To select the Text control
|
|
Source Type |
Source type of attachment for the control.
Note: |
Scripts
For information about using scripts, see scripting guidelines for Attachment control.
Note:
- We recommend to keep the file size lesser than 30 MB to avoid errors during the
upload. Also, you can download a file only if the size is 30 MB or lesser.
- The request timeout controls the time taken for a request to process, which also
controls the uploading/downloading file. So, it is recommended to set the Request
timeout to an appropriate value as per the upload limit set in the environment. The
default value for the request timeout is set to 900 secs.
- When the Storage Type is set to Database, the attachment is uploaded to the server immediately after clicking Upload.
-- The uploaded attachments are stored in the Data column of the SKEListItemDataTemp table.
-- The Attachment control value securely holds information to the location where the
attachment is stored.
-- The uploaded attachment cannot be retrieved or processed through workflows and
so on.
- Special characters like , ; and space in the file name of the attachment will be
replaced with “_” in the downloaded attachment.
- To upload the attachment file to AVEVA Cloud Storage, make sure the user has Work Tasks File Reader Writer role in CONNECT.