DriveWorks Pro 15: Text Document [send feedback...]

Introduction

The Text Document will create a plain text (not formatted with font or color information) file that can be saved in the following formats:

  • .txt
  • .tab
  • .xml
  • .html
  • .bat
The Text Document is created by the Specification Flow task - Release Documents.

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.

To Add a Text Document

In DriveWorks Administrator open the project the document is to be applied and go to Stage4: Output Rules> Documents:

  1. Click the Add button on the command bar.
  2. Choose the Text Document item from the Documents list in the Create Document wizard.
  3. Enter a name for the document in the field below the Document and Document Template list.
  4. Click Finish.

Edit a Text Document

When a Text Document is added the parameters that can be set will be shown in the document window.

Document Name

By default the rule applied to this parameter is:

<DocumentName>&DWSpecification&".txt"

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:

  • delete
  • suppress
  • false
  • <delete>
  • <suppress>
  • <false>

Examples

RuleMeaning
"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.

Document Path

By default there is no rule applied to this parameter. Therefore the resulting document will be saved relative to the specification folder.

Examples

RuleMeaning
DWSpecificationFullPath&"\Text File"Will create the folder Text File in the specification folder and store the created Text document in this location.

Hide From Document List

When this setting is enabled (by checking the box) the document will be hidden from the Documents list in the Specification Explorer.

Lines of Text

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.

Examples

RuleMeaning
"Order Number: " & OrderNumberReturnWill create the text Order Number: 1234 in the text file.

1234 is the value coming from the form control OrderNumber.

Table of Contents