Differences

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

Link to this comparison view

Both sides previous revision Previous revision
ref:a_f:a:download_document [2026/08/13 00:43] – removed - external edit (Unknown date) 127.0.0.1ref:a_f:a:download_document [2026/08/13 00:43] (current) – ↷ Page moved from a_f:a:download_document to ref:a_f:a:download_document localdev
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>