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:export_document [2022/09/01 01:23] – ↷ Page moved from a_f:3100_actions:export_document to a_f:a:export_document administratora_f:a:export_document [2023/05/09 01:36] (current) sean
Line 1: Line 1:
-{{tag>Actions Action_List Process Documents Files}}+{{tag>Index Action Action_List Process Documents Files}}
 ====== EXPORT DOCUMENT ====== ====== EXPORT DOCUMENT ======
  
Line 8: Line 8:
 The action written in this format exports the contents of the attribute of the specified business object, provided that this attribute is of the Document or Picture type. Whatever document is stored in the attribute will be exported – no document processing is performed. For example, The action written in this format exports the contents of the attribute of the specified business object, provided that this attribute is of the Document or Picture type. Whatever document is stored in the attribute will be exported – no document processing is performed. For example,
  
-<code aim> EXPORT DOCUMENT Statement.StatementDocument TO FOLDER 'c:/mydocuments'</code>+<code aim>EXPORT DOCUMENT Statement.StatementDocument TO FOLDER 'c:/mydocuments' </code>
  
   * ''EXPORT DOCUMENT'' (Id() | StringLiteral())''TO'' ( ''FILE'' or ''FOLDER'' )ArithmeticOperation()   * ''EXPORT DOCUMENT'' (Id() | StringLiteral())''TO'' ( ''FILE'' or ''FOLDER'' )ArithmeticOperation()
Line 14: Line 14:
 where Id() or StringLiteral() is the name of the document template to be exported. Before the document template is displayed the action will calculate and fill in attribute values used inside tags in the template (see also the “[[docs:2000_concepts:0900_prod_feats:0200_working_with_docs_reports:0200_doc_gen|Document Generation]]” section. Consider the following rules: where Id() or StringLiteral() is the name of the document template to be exported. Before the document template is displayed the action will calculate and fill in attribute values used inside tags in the template (see also the “[[docs:2000_concepts:0900_prod_feats:0200_working_with_docs_reports:0200_doc_gen|Document Generation]]” section. Consider the following rules:
  
-<code aim> FIND Person WHERE Person.Name='John Smith' +<code aim>FIND Person WHERE Person.Name='John Smith' 
- EXPORT DOCUMENT AccountOpeningLetter TO FOLDER 'c:/mydocuments'</code>+ EXPORT DOCUMENT AccountOpeningLetter TO FOLDER 'c:/mydocuments' </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: 
  
-<code> Dear <<Person.Name>>, </code> +<code>Dear <<Person.Name>>,  </code> 
  
 it will be replaced with the line  it will be replaced with the line 
  
-<code> Dear John Smith </code>+<code>Dear John Smith  </code>
  
 when the template is exported. when the template is exported.
  • Last modified: 2022/09/13 18:11