Enumerates the names of the documents that match the specified criteria, as well as the documents’ descriptions, timestamps, security classes, privacy flags, content types, owners, file types, and document types. You can also filter for public or private documents.
This information is returned in arrays that have a one-to-one correspondence with each other.
EnumDocuments is a similar method that enumerates only the documents’ names, descriptions, timestamps, and security classes. |
<HFMwManageDocuments>.EnumDocumentsEx (bstrPath, varalDocumentType, varalDocumentFileType, vbFilterByCreateTime, dStartTime, dStopTime, lShowPrivateDocs, pvarabstrDescriptions, pvaradTimestamp, pvarabstrSecurityClass, pvarabIsPrivate, pvaralFolderContentType, pvarabstrDocOwner, pvaralFileType, pvaralReportType)
The document type of the documents to be enumerated. Document types are represented by the HFMConstants type library constants listed in Document Type Constants. | |
The file type of the documents to be enumerated. File types are represented by the HFMConstants type library constants listed in Document File Type Constants. | |
Specifies whether information will be returned for only those documents with timestamps in a specified range. Pass TRUE to filter by timestamp, FALSE otherwise. If you pass TRUE, information will be returned for only those documents with timestamps that fall into the range specified by the dStartTime and dStopTime arguments. If you pass FALSE, the dStartTime and dStopTime arguments will be ignored, but will still require a value. | |
Specifies whether to return public documents, private documents, or both. Valid values are represented by the HFMConstants type library constants listed in Showing Public and Private Documents. | |
Returns an array indicating whether the documents are public or private. TRUE indicates private, FALSE indicates public. | |
Returns an array indicating the types of documents that folders can contain. This value has meaning only for folders; ignore array items that correspond to document types other than folders. Valid values are represented by the HFMConstants type library constants listed in Document Type Constants. | |
Returns an array containing the usernames of the documents’ owners. | |
Returns an array of the documents’ file types. File types are represented by the HFMConstants type library constants listed in Document File Type Constants. | |
Returns an array of the documents’ document types. Document types are represented by the HFMConstants type library constants listed in Document Type Constants. |
Returns an array of the documents’ names.
The following function takes a folder path and returns an HTML table that lists the folder’s public data forms and the usernames of the forms’ owners.
Function GetDocAndFolderTypes(sPath) Dim cHFMDocuments, vaDocNames, vaDescs, vaTime, vaSecClass, sRet Dim vaPrivate, vaContent, vaOwners, vaFileTypes, vaReportTypes Set cHFMDocuments = _ Server.CreateObject("Hyperion.HFMwManageDocuments") ' cHFMSession is a previously set HFMwSession object cHFMDocuments.SetWebSession cHFMSession vaDocNames = cHFMDocuments.EnumDocumentsEx(sPath, _ WEBOM_DOCTYPE_ALL, WEBOM_DOCFILETYPE_ALL, _ FALSE, 0, 0, ENUMSHOWPRIVATEDOCS_DONTSHOW, vaDescs, _ vaTime, vaSecClass, vaPrivate, vaContent, vaOwners, _ vaFileTypes, vaReportTypes) sRet = sRet & "<table cellpadding=2>" sRet = sRet & "<tr><td><b>Form</b></td>" & _ "<td><b>Doctypes</b></td>" & _ "<td><b>file types</b></td></tr>" For i = lBound(vaDocNames) to uBound(vaDocNames) sRet = sRet + "<tr><td>" & vaDocNames(i) & "</td>" sRet = sRet + "<td>" & vaReportTypes(i) & "</td>" sRet = sRet + "<td>" & vaFileTypes(i) & "</td></tr>" Next sRet = sRet + "</table>" GetDocAndFolderTypes = sRet End Function