This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
bw2:file_writer_tool [2021/02/09 16:39] akoehler |
bw2:file_writer_tool [2024/09/24 16:22] (current) dlee [File Writer Variables] |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Introduction (File Writer)====== | ||
| - | |||
| - | This page describes the use of the “File Writer” tool in Bizweaver. Information regarding the associated File Operations and File Reader tools is found in separate documents. | ||
| ====== File Writer Tool ====== | ====== File Writer Tool ====== | ||
| Line 113: | Line 110: | ||
| The first step within the loop is to gather the detail for each specific record. The SQL statement to do this is: | The first step within the loop is to gather the detail for each specific record. The SQL statement to do this is: | ||
| - | <code sql> | + | <code sql>SELECT fileName |
| - | + | ,fileContent | |
| - | WorkFlow(SQLCommand1).Get({FIELD_ID}) </ | + | FROM twbs_vgo_formAttachments |
| + | WHERE id = WorkFlow(SQLCommand1).Get({FIELD_ID}) </ | ||
| The two values are then used in the File Writer step. | The two values are then used in the File Writer step. | ||
| Line 158: | Line 156: | ||
| /* Convert image data to base64 Binary and insert it into a holding table named SignatureCapture. | /* Convert image data to base64 Binary and insert it into a holding table named SignatureCapture. | ||
| Assumes a text field named “Name” is used to capture the signature name */ | Assumes a text field named “Name” is used to capture the signature name */ | ||
| - | insert into SignatureConvert | + | INSERT INTO SignatureConvert |
| (ObjectID, ControlID, RecordId, FileName, FileType, FileContent, | (ObjectID, ControlID, RecordId, FileName, FileType, FileContent, | ||
| - | select | + | SELECT |
| - | @Object,' | + | |
| - | cast('' | + | ,' |
| - | from F2_SigCapture | + | ,@vgoRecNum |
| + | ,ISNULL(Name,' | ||
| + | ,' | ||
| + | ,CAST('' | ||
| + | ,' | ||
| + | ,GETDATE() | ||
| + | FROM F2_SigCapture | ||
| + | WHERE vgoRecNum = @vgoRecNum | ||
| </ | </ | ||
| Line 174: | Line 179: | ||
| ====Option 2==== | ====Option 2==== | ||
| The signature image can also be converted as needed in a Bizweaver workflow. | The signature image can also be converted as needed in a Bizweaver workflow. | ||
| + | |||
| + | |||
| + | ====File Writer Variables==== | ||
| + | ^Name ^ Description | ||
| + | | AppendData | ||
| + | | BinaryData| | ||
| + | |ColumnID| If create a file for records - grouped by is selected it will display the current record that is being grouped| | ||
| + | | CreateFileForAllRecords | ||
| + | | CreateFileForGroupedRecords |True or False if the create a file for grouped records radio button was selected| | ||
| + | | CustomSeparator | ||
| + | | DataSourceWorkFlowID | ||
| + | | EnableBinaryData |True or False if the binary data radio button is selected| | ||
| + | | EnableColumnHeaders | ||
| + | |EnableDataSource | ||
| + | | EnableStringBuilder |True or False if custom string radio button is selected| | ||
| + | | FileName | ||
| + | | FileType | ||
| + | |FormattedStringBody |The value that was entered in the body section of the custom string if any| | ||
| + | | FormattedStringFooter | ||
| + | | FormattedStringHeader | ||
| + | | StepMessage|During a failure the reason for failure will be populated here | | ||
| + | | StepStatus | ||
| + | |||
| + | ---- | ||
| + | **[[bizweaver: | ||