Related documents
For the Windows client, Content Manager OnDemand provides menu and toolbar extensions that allow a user to retrieve and view a document related to the document currently being viewed.
This facility is activated by placing information in the Windows system registry. If during initialization, Content Manager OnDemand detects this information, it adds menu items and toolbar buttons. When the user chooses one of these menu items or clicks one of these toolbar buttons, Content Manager OnDemand retrieves the related document and displays it along with the original document.
A typical application for Related Documents is a credit card folder containing monthly statements. The user views a customer’s statement which has a line for each credit card transaction, selects a transaction number on one of these lines, and clicks a toolbar button. Content Manager OnDemand searches an associated transaction folder for the customer’s account number and selected transaction number, then displays the transaction document alongside the statement.
Key | Value Name | Value Data |
---|---|---|
RelatedDocs | Related | r1[, r2][, r3][, r4][, r5][, r6][, r7][, r8][, r9][, r10] |
r1 | MenuText | menu item text |
BitmapDLL | toolbar button bitmap DLL path | |
BitmapResid | toolbar button bitmap resource identifier | |
Folders | folder name[\folder name]… | |
ExcludeFolders | folder name[\folder name]… | |
RelatedFolder | related folder name | |
Fields | field information | |
Arrange | V | H| M| C| U |
The RelatedDocs key contains one string value. The string name is Related. The value data for the Related string value is a comma separated list of additional Client keys that represent the related documents. Each related document that is specified in the Related string value should be added as a key to the Client key. A maximum of ten related documents can be specified. They can be divided between the HKEY_CURRENT_USER and HKEY_LOCAL_MACHINE keys. The key names can be any string.
- MenuText
- Specifies the text to appear on the associated menu item under the Content Manager OnDemand Window menu. This value is optional. If not provided, the menu item is blank.
- BitmapDLL
- Specifies the path for a DLL containing a bitmap resource to be used for a toolbar button to be associated with the Related Documents . The bitmap should be 16 pels wide and 16 pels high.
- BitmapResid
- Specifies the resource id of the bitmap within the DLL specified for BitmapDLL. This value is ignored if BitmapDLL is not specified and optional if it is. If not provided, a value of 0 is assumed.
- Folders
- Specifies one or more names of Content Manager OnDemand folders. If multiple names are provided, they must be separated by a backslash (’\’) character. An asterisk (’*’) can be used as a wildcard character in the last position of the name. This is equivalent to listing all folder names beginning with the characters preceding the asterisk.
- ExcludeFolders
- Specifies one or more names of Content Manager OnDemand folders. The syntax is the same as the Folders value.
- RelatedFolder
- Specifies the name of a Content Manager OnDemand folder which contains a document related to the document being viewed. This folder can be the same as or different from the folder specified by Folders.
- Fields
- Specifies information describing the document to be retrieved from the related folder. This information is used to perform a search of the folder. The folder fields are first initialized to their default operator and values. The fields specified here are then set to the operator and values requested. The first document in the document list resulting from the search is considered to be the related document.
- Arrange
- specifies the arrangement of the document windows after the related
document is brought into view. The value must be one of the following choices:
- V
- for tiled vertically.
- H
- for tiled horizontally.
- M
- for maximized with the related document overlaying the original.
- C
- for cascaded.
- U
- for left to the user’s specification in the Maintain Document Arrangement menu item.
The following three screen captures show an example of registry entries required to support two related documents.