SENDATTACHMENT
Syntax
![]()
Command
Mandatory parameter Optional parameter Mandatory keyword Optional keyword |
SENDATTACHMENT (<Filename>)
Description
Send a file to the user.
The file set as parameter will be offered to the user, a save file dialogue will be opened in the client to save the file to a chosen location.
Diagram
Returned value type
None
Parameters
Parameter |
Description |
Filename |
The filename, including absolute path, of the file to be sent to the user. |
Remarks
File to be sent needs to be accessible by the file controller.
The SENDATTACHMENT command is intended to handle files up to 5 MB, larger files may impact the performance of your AMT environment.
Example
A)
sendattachment ('D:\Documents\Terms.pdf')
refresh ()
B)
ROUTINE BTNEventOnClick(FieldName: String)
BEGIN_ROUTINE
sendattachment(InvoicePdf)
END_ROUTINE
sendattachment ('D:\Documents\Terms.pdf')
refresh ()
B)
ROUTINE BTNEventOnClick(FieldName: String)
BEGIN_ROUTINE
sendattachment(InvoicePdf)
END_ROUTINE