Wiki source code of Word-Datei befüllen


Hide last authors
awa 15.2 1 {{figure image="word_fill_en.png" clear="h1"}}
2 Configuration interface of the //Fill word document// action. The source resource is a //Word document//. The output file is a //PDF document// or //Word document//.
XIMA Admin 1.1 3 {{/figure}}
4
awa 15.2 5 The action //Fill word document// fills an existing //Word document// with values from the transferred form data and creates a //Word document// or a //PDF document// from it again.
XIMA Admin 1.1 6
awa 15.2 7 The Word document must be prepared accordingly for this, see the section [[Prerequisite of the Word document to be filled>>doc:Formcycle.Designer.Workflow.Actions.FillWordDocument.PreparationWord]].
XIMA Admin 1.1 8
awa 15.2 9 == Parameters ==
jdr 7.3 10
awa 15.2 11 === Details for Word fill ===
jdr 7.3 12
awa 15.2 13 ; File
14 : Selection of the Word document to be used. It can be [[Formfiles>>Formcycle.UserInterface.MyForms.Files]], [[Clientfiles>>Formcycle.UserInterface.FilesAndTemplates.Files]], files loaded via a URL or task attachments Word file fill. See [[actions>>doc:Formcycle.Designer.Workflow.Actions.WebHome]] for a list of supported URL protocols.
15 ; Resource URL
16 : Enter the URL to be retrieved if //External Resource URL// is selected as the file.
17 ; File name for search
18 : If as file //Search process attachments using file name// is selected, the file name for search can be selected here.
19 ; Type filter
20 : This filter can be used to narrow down the search of the process attachments.
XIMA Admin 1.1 21
awa 15.2 22 === Storage options for the created files ===
jdr 7.3 23
awa 15.2 24 ; Output file name
25 : File name under which the XML file will be saved. Please note that the filename extension must be xml, so the filename must end in .xml.
26 ; Attach file to form record
27 : If this option is selected, files created in this action will be attached to the form record. Otherwise, they are only available for other actions within the workflow processing in the same processing chain.
jdr 7.3 28
awa 15.2 29 == Action variables ==
jdr 7.3 30
awa 15.2 31 Actions of type //Fill word document// provide [[Action variables>>Formcycle.UserInterface.Variables||anchor="HActionvariables"]] which can be used in subsequent actions.
jdr 7.3 32
awa 15.2 33 === Standard action variables ===
jdr 7.3 34
awa 15.2 35 ; [%$<action name>.SUCCESS%]
36 : Return whether action was successfully executed. Returns Boolean (true/false).
37 ; [%$<action name>.RESULT%]
38 : Return all results provided by the action in structured form.
jdr 7.3 39
awa 15.2 40 ; [%$<action name>.ERROR_CODE%]
41 : The error code thrown in case of an error in the action. Empty if no error occurred.
42 ; [%$<action name>.ERROR_MESSAGE%]
43 : The thrown error message in the action's error case. Empty if no error occurred.
jdr 7.3 44
awa 15.2 45 === Action specific action variables ===
46 ; [%$<action name>.RESULT.fileSize%]
47 : Size of the created Word file or PDF file, in bytes.
48 ; [%$<action name>.ERROR.message%]
49 : Error message returned if the Word or PDF file could not be written to the file system, the specified URL does not match a valid format, no source file could be determined, the file format of the source file is not supported, or an error occurs while generating the Word document.
50
XIMA Admin 1.1 51 == Videos ==
52
awa 15.2 53 [[Workshop-Video>>doc:Workshops.052020 Teil 2 - Word Fill.WebHome]]