DISPLAY Command

DISPLAY commands insert text or graphic values from the source domain. You can display names of files and Rose objects, bitmaps, class diagrams, and more.

Each DISPLAY command is based on the context of one of the OPEN, REPEAT, or LIMIT commands defined above it in the command hierarchy. At least one OPEN command must be specified in a document before a DISPLAY command can be created.

Adding a New DISPLAY Command

To add a DISPLAY command:

1. Position your cursor precisely where you want the value displayed.

Note: If you work in the document, show the existing SoDA commands so you can be sure the cursor position is correct.

2. Choose Add Command from the SoDA menu.

3. Select the DISPLAY Command.

4. In the DISPLAY Command dialog box, choose an attribute and the modifiers you want and click OK.

To modify an existing DISPLAY command, refer to: Modifying Existing Commands

Note: To read about the annotation differences between the Word versions, see Word 2000 and Word 2002 Comparison.

Example

You are creating a document which will extract objects from the File System domain. You would like SoDA to create a document section for each directory in your project directory. You would also like the name of each directory to appear in the corresponding document-section heading.

After creating an OPEN command called project_directory, and creating a REPEAT command which will result in a section for each directory in project_directory, insert a DISPLAY command in the section heading to return the name of each directory.

 

Select

all_directories -> Simple Name

Modifiers

 

  Display Options

Capitalize

  Remove Punctuation?

no (default)

  Single Paragraph?

yes (default)

 

(Note: Remove Punctuation removes the following characters: period, comma, question mark, semi-colon, colon, exclamation mark, opening parenthesis, closing parenthesis, underscore, dollar sign. Remove Punctuation does NOT remove the following characters: dash, single quote mark, double quote mark.