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:display_document [2022/09/01 02:58] administratora_f:a:display_document [2025/06/12 03:59] (current) – Change to AwareIM aware_support3
Line 1: Line 1:
-{{tag>Actions Action_List Process Documents Files}}+{{tag>Index Action Action_List Process Documents Files}}
 ====== DISPLAY DOCUMENT ====== ====== DISPLAY DOCUMENT ======
  
Line 8: Line 8:
 The action written in this format displays the contents of the attribute of the specified business object, provided that this attribute is of the Document type. Whatever document is stored in the attribute will be displayed – no document processing is performed. For example, The action written in this format displays the contents of the attribute of the specified business object, provided that this attribute is of the Document type. Whatever document is stored in the attribute will be displayed – no document processing is performed. For example,
  
-<code aim> DISPLAY DOCUMENT Statement.StatementDocument </code>+<code aim>DISPLAY DOCUMENT Statement.StatementDocument </code>
  
   * ''DISPLAY DOCUMENT'' (Id() | StringLiteral()) [ ''AS MESSAGE'' ][ ''USING'' StringLiteral()] [ ''MERGE INTO ONE'' ] [ ''NEW WINDOW'' ][ ''MERGE WITH'' AttributeIdentifier()][ ''DELETE AFTER'' INTEGER_LITERAL]   * ''DISPLAY DOCUMENT'' (Id() | StringLiteral()) [ ''AS MESSAGE'' ][ ''USING'' StringLiteral()] [ ''MERGE INTO ONE'' ] [ ''NEW WINDOW'' ][ ''MERGE WITH'' AttributeIdentifier()][ ''DELETE AFTER'' INTEGER_LITERAL]
Line 16: Line 16:
 Consider the following rules: Consider the following rules:
  
-<code aim> FIND Person WHERE Person.Name='John Smith' +<code aim>FIND Person WHERE Person.Name='John Smith' 
- DISPLAY DOCUMENT AccountOpeningLetter </code>+DISPLAY DOCUMENT AccountOpeningLetter </code>
  
 where AccountOpeningLetter is the name of the document template. If this template has the following line:  where AccountOpeningLetter is the name of the document template. If this template has the following line: 
Line 32: Line 32:
  
  
-<callout type="primary" icon="true" title="note"> You can specify a query in USING keyword. Aware IM will use the query as the data source for the document. Aware IM will produce as many documents as there are instances returned by the query. If ''MERGE INTO ONE'' keyword is not used Aware IM will display all instances on screen (the user will have to click on an icon next to each entry to see the document). If ''MERGE INTO ONE'' keyword is specified Aware IM will automatically merge all documents into one document and show it to the user immediately.</callout>+<callout type="primary" icon="true" title="note"> You can specify a query in ''USING'' keyword. AwareIM will use the query as the data source for the document. AwareIM will produce as many documents as there are instances returned by the query. If ''MERGE INTO ONE'' keyword is not used AwareIM will display all instances on screen (the user will have to click on an icon next to each entry to see the document). If ''MERGE INTO ONE'' keyword is specified AwareIM will automatically merge all documents into one document and show it to the user immediately.</callout>
  
  
Line 42: Line 42:
  
  
-<code aim> DISPLAY DOCUMENT AccountOpeningLetter MERGE WITH SystemSettings.TermsAndConditionsDoc </code></callout>+<code aim>DISPLAY DOCUMENT AccountOpeningLetter MERGE WITH SystemSettings.TermsAndConditionsDoc </code></callout>
  
 <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: <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> DISPLAY DOCUMENT AccountOpeningLetter DELETE AFTER 15 </code></callout>+<code aim>DISPLAY DOCUMENT AccountOpeningLetter DELETE AFTER 15 </code></callout>
  
  
  • Last modified: 2022/09/13 18:11