The Text Document will create a plain text (not formatted with font or color information) file that can be saved in the following formats:
Ensure this task exists in your Specification Flow and the Documents property (of the task) is set to a value that will generate the Text Document.
In DriveWorks Administrator open the Project the Document is to be added to and go to Stage4: Output Rules then Documents - Files
When a Text Document is added the parameters that can be set will be shown in the Document Window.
By default the rule applied to this parameter is:
To change the default rule click the Build button at the end of the Document Name field.
If the Text Document creation is not required to be created for a Specification the rule must result in one of the following:
|"TextDoc " & DWSpecification & ".txt"||Will create the file TextDoc 9999.txt. |
9999 is the value coming from the special variable DWSpecification.
|"HTMLDoc " & DWSpecification & ".html"||Will create the file HTMLDoc 9999.html. |
9999 represents the value coming from the special variable DWSpecification.
|IF(CreateFileReturn=TRUE,"TextDoc " & DWSpecification & ".txt","delete")||Will create the file TextDoc 9999.txt when the value coming from the Form Control CreateFile is TRUE, otherwise the file will not be created (as determined by the result of the rule being delete).|
9999 represents the value coming from the Special Variable DWSpecification.
By default there is no rule applied to this parameter. Therefore the resulting Document will be saved relative to the Specification Folder.
Please see Info: Where To Store DriveWorks Data for information on where to store the data associated to a DriveWorks implementation.
|DWSpecificationFullPath&"\Text File"||Will create the folder Text File in the Specification Folder and store the created Text Document in this location.|
When this setting is enabled (by checking the box) the Document will be hidden from the Documents list in the Specification Explorer.
To add a line of text click the Add Line button from the command bar.
To remove a line of text click the Remove Line button from the command bar.
To recalculate the rules for each line click the Recalculate button from the command bar.
Lines of text can be rearranged by selecting the line to be rearranged and clicking the Move Up or Move down button from the command bar.
Once a line has been added to the Document, select the line and click the Build button from the command bar to launch the Rule Builder.
|"Order Number: " & OrderNumberReturn||Will create the text Order Number: 1234 in the text file.|
1234 is the value coming from the Form Control OrderNumber.