Creating Hyperlinks Within a Document

SoDA gives you the ability to create documents that include hyperlinks from one section of the document to another.

To use this feature, you must have a document where an item is listed in at least two places: The first place will act as the "anchor" or "address" of the link. The second place will be underlined, so that when the reader clicks on the item the document jumps to the target address location.

Here is an example that shows how you can create a link from general to more detailed information in a document:

OPEN Rose_Model, a Rose Model
DISPLAY Rose_Model.SimpleName
REPEAT Package, a Package, using Rose_Model.AllPackages
     DISPLAY Package.Name
     REPEAT Class, a Class, using Package.Classes
          DISPLAY Class.Name (
hyperlinking is enabled here)
          
.
          
.
          
.

REPEAT AllClasses, a Class, using Rose_Model.AllClasses (the target of the hyperlink)
          DISPLAY AllClasses.Name
          DISPLAY AllClasses.Documentation
          REPEAT Operation, a Operation, using AllClasses.MyOperations
               DISPLAY Operation.Name
               DISPLAY Operation.Documentation

 

The REPEAT command acts as the target, and the DISPLAY command acts as the hyperlink to the target. You cannot arbitrarily select any REPEAT command and any DISPLAY command and have them link to each other-- they must both refer to the same class of object.