CreateDocumentKey function
Syntax
CreateDocumentKey(Package, DocumentName, Version)
Description
Use this method to instantiate a new 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 DocumentKey object.
Example
The following provides an example of instantiating a Document object from a document key:
Local Document &Doc;
Local DocumentKey &DocKey;
/* Populating Document Object */
&DocKey = CreateDocumentKey("Purchasing", "PurchaseOrder", "v1");
&Doc = CreateDocument(&DocKey);
Related Topics