DocumentKey Class Methods
In this section, the DocumentKey class methods are presented in alphabetical order.
Syntax
SetDocumentKey(Package, DocumentName, Version)
Description
Use this method to change the document keys for a DocumentKey object.
Parameters
Parameter  | 
Description  | 
|---|---|
Package  | 
 Specifies a document package as a string.  | 
DocumentName  | 
 Specifies the name of the document as a string. Note: The document name also becomes the root element name for the document.  | 
Version  | 
 Specifies the document version as a string.  | 
Returns
A Boolean value: True if the document keys were set successfully, False otherwise.
Example
Local Document &Doc;
Local DocumentKey &DocKey;
/* Instatiate the Document object */
&DocKey = CreateDocumentKey("Purchasing", "PurchaseOrder", "v1");
   ...
&ret = &DocKey.SetDocumentKey("Purchasing", "PurchaseOrder", "v1.1");
&Doc = CreateDocument(&DocKey);