Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
a_f:a:download_document [2022/09/01 01:23] – removed - external edit (Unknown date) 127.0.0.1a_f:a:download_document [2023/05/09 01:33] (current) sean
Line 1: Line 1:
 +{{tag>Index Action Action_List Process Files Documents Version:v8.1}}
 +====== DOWNLOAD DOCUMENT ======
 +
 +This action is very similar to the DISPLAY DOCUMENT action, but instead of displaying the document on the screen, the action always downloads the document to the machine of the user. 
 +
 +===== Syntax =====
 +
 +''DOWNLOAD DOCUMENT'' (AttributeIdentifier( ) | Id( ) | StringLiteral( ) ( ) ) ][ ''DELETE AFTER'' INTEGER_LITERAL]
 +
 +<callout type="primary" icon="true" title="note"> ''DELETE AFTER'' keyword can be used to specify a number of seconds after which the generated document will be deleted on the server for security reasons. If not specified, the document will be deleted when the user logs out. For example to delete the document after 15 seconds use the following:
 +
 +<code aim>DOWNLOAD DOCUMENT AccountOpeningLetter DELETE AFTER 15 </code></callout>