Kofax DM API Manuel d'utilisateur

Naviguer en ligne ou télécharger Manuel d'utilisateur pour Outils Kofax DM API. Kofax DM API User Manual [es] Manuel d'utilisatio

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 528
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 0
DM API Reference Guide
Hummingbird Enterprise
2004
Vue de la page 0
1 2 3 4 5 6 ... 527 528

Résumé du contenu

Page 1 - DM API Reference Guide

DM API Reference GuideHummingbird Enterprise™ 2004

Page 2

x%DELETE_PHYSICAL_FILES 345%DOCS_LIBRARY_NAME 346%DOCUMENT_NUMBER 348%EFFECTIVE_RIGHTS 350%ELAPSED_TIME 352%ENCAPSULATION_TYPE 354%FILTER_

Page 3 - Contents

80 CHAPTER 3PCDNetworkInfo Dim nNumRows As Long 'If program is now checking the top of Member 'list from the opening of the form..

Page 4 - Chapter 3 DM API Objects

DM API OBJECTS 81PCDNetworkInfo & “retrieve the Users Groups." End If Else 'This is the first time through. Do n

Page 5

82 CHAPTER 3PCDNetworkInfo sUserID = TxtUserID.Text nResult = oIsMember.IsMemberOf( "%NI_NT", _ sDomainName, sUserID, sGroupNa

Page 6

DM API OBJECTS 83PCDPropertyListPCDPropertyListPCDPropertyList is a Messenger object that allows you to store and manipulate a collection of prop

Page 7 - vii

84 CHAPTER 3PCDPropertyListExampleThe following example shows how you can incorporate the functionality of the GetPropertyList object into an applica

Page 8

DM API OBJECTS 85PCDPropertyListEnd Sub Private Sub cbListProperties_Click() Dim nResult As Long Dim nTotalElements As Integer nTota

Page 9 - Chapter 5 DM API Tokens

86 CHAPTER 3PCDPropertyList For i = 1 To nTotalElements nResult = _ ValueForm.oValueFormProps.AddProperty( _ oGlobalPropertyList.

Page 10

DM API OBJECTS 87PCDPropertyList oGlobalPropertyList.AddProperty( _ "Table Locks", vPropValue) 'I

Page 11

88 CHAPTER 3PCDPropertyList Else MsgBox "CPU Property Addition has failed" End If End Sub Public oValueFormProps As New PCDProper

Page 12

DM API OBJECTS 89PCDPropertyList oValueFormProps.GetPropertyValue( _ sSearchString) 'Report the value of the property. lb

Page 13 - %VISIBLE 507

xi%LOCK_FOR_CHECKOUT 403%LOOKUP_ID 404%MAKE_READ_ONLY 406%MAXDAYS 408%NUM_COMPONENTS 409%OBJECT_IDENTIFIER 410%OBJECT_TYPE_ID 412%O

Page 14

90 CHAPTER 3PCDPropertyList'Note that this example retrieves each value 2 'times. Public oListFormProps As New PCDPropertyList Private Su

Page 15 - How This Guide Is Organized

DM API OBJECTS 91PCDPropertyList Public nActiveProperty As Integer Public oDeleteProp As New PCDPropertyList Private Sub cbCancel_Click() Unlo

Page 16 - Related Documentation

92 CHAPTER 3PCDPropertyList 'Determine number of rows in the PCDPropertyList. nTotalRows = oDeleteProp.GetSize() If nTotalRows > 0 Th

Page 17 - Professional Services

DM API OBJECTS 93PCDPropertyList nResult = oDeleteProp.NextProperty() Next i End If lstProperties.ListIndex = 0 nActiveProperty

Page 18 - Where to Go for Information

94 CHAPTER 3PCDPropertyList Dim nResult As Long Dim nIndex As Long Dim nSize As Long Dim sPropName As String sPropName = txtPropertyName.

Page 19 - xix

DM API OBJECTS 95PCDPropertyListGetPropertyValue GetSize NextProperty See the following properties:ErrDescription ErrNumber

Page 20 - HAPTER 3

96 CHAPTER 3PCDPropertyListsPCDPropertyListsThis object lets you work with a collection of PCDPropertyList objects.SyntaxPCDPropertyLists.methodOrPro

Page 21 - The DM Architecture

DM API OBJECTS 97PCDPutDoc PCDPutDocPCDPutDoc allows you to obtain and manage a set of PCDPutStream object pointers that your customized client a

Page 22 - DM Functionality

98 CHAPTER 3PCDPutDoc Dim VersionID As Long Dim TotalFileSize As Long Dim TotalBytesWritten As Long Dim Buffread As Long 'Set bdata rid

Page 23

DM API OBJECTS 99PCDPutDoc objPutDoc.AddSearchCriteria _ "%TARGET_LIBRARY", Library objPutDoc.AddSearchCriteria _ &quo

Page 24 - DM Object Model

xii%RECENTACTIVITYTIME 454%RELATED_REMOTE_LIBS 455%REMOVE_READ_ONLY 456%RENDITION_TYPE 459%RIGHT8 461%RIGHT9 463%SCORE_GRAPHIC 465%SCORE

Page 25 - Types of DM Objects

100 CHAPTER 3PCDPutDoc Else TotalFileSize = TotalBytesWritten End If Get #1, , bdata objPutStream.Write

Page 26

DM API OBJECTS 101PCDPutDocRelated ItemsSee the following methods: See the following properties:ErrDescription ErrNumber AddSearchCriteria Exe

Page 27 - The Logon Process

102 CHAPTER 3PCDPutStreamPCDPutStreamUse PCDPutStream to provide users with the ability to write the contents of physical files to disk. SyntaxPCDPut

Page 28

DM API OBJECTS 103PCDRecentDocPCDRecentDocUse the PCDRecentDoc object to retrieve recently edited documents from your DM Repository.SyntaxPCDRece

Page 29

104 CHAPTER 3PCDRecentDocRelated ItemsSee the following methods: See the following properties:ErrDescription ErrNumber AddOrderByProperty AddRetur

Page 30

DM API OBJECTS 105PCDSearchPCDSearchPCDSearch provides the user with the ability to enter criteria to execute a search of the available document

Page 31 - DM Search Transactions

106 CHAPTER 3PCDSearchSee the following properties:ErrDescription ErrNumber

Page 32

DM API OBJECTS 107PCDSQLPCDSQLThe PCDSQL object allows direct access to SQL tables that support the DM document management system. Caution: The P

Page 33

108 CHAPTER 3PCDSQLthat allows the document security token (DST) to be shared throughout the entire application.'These are the Project-wide Glob

Page 34

DM API OBJECTS 109PCDSQL'This will be shared throughout this form. Public oDIC As New DocInternalClass Private Sub cbNextKey_Click() Next

Page 35

xiii%VISIBLE 507

Page 36

110 CHAPTER 3PCDSQL Dim sBuffer As String Dim oLogin As New PCDLogin Dim nResult As Long Dim sTempBuf As String 'Login process. nR

Page 37

DM API OBJECTS 111PCDSQL'because without the Document Security Token 'being set within the object, the verification of 'the '

Page 38

112 CHAPTER 3PCDSQL nResult = oSelectSQL.ReleaseResults() Unload SelectForm End Sub Private Sub cbSelect_Click() 'Local Variable Dec

Page 39 - Document Objects

DM API OBJECTS 113PCDSQL oSelectSQL.GetColumnValue(j)) Next j Next i End Sub Private Sub Form_Load() 'Set

Page 40

114 CHAPTER 3PCDSQLPublic oUpdateSQL As New PCDSQL Private Sub cbCancel_Click() Dim nResult As Long 'Release the result set for this

Page 41

DM API OBJECTS 115PCDSQL Dim nResult As Long Dim nRowCount As Long 'Determine which row is being updated. 'Then, load the dat

Page 42

116 CHAPTER 3PCDSQL 'Set the Library. If nResult = 0 Then nResult = oUpdateSQL.SetLibrary("MyNewLibrary") Else MsgBox (&q

Page 43

DM API OBJECTS 117PCDSQL txtFullName.Text = oUpdateSQL.GetColumnValue(2) End Sub Private Sub lstUserIDs_Click() Dim nListIndex As Long

Page 44

118 CHAPTER 3PCDSQLDim sDST As String Dim oDSTDIC As New DocInternalClass Dim oDSTLogin As New PCDLogin Public oDSTSQL As New PCDSQL Private Sub cbC

Page 45

DM API OBJECTS 119PCDSQL & “DOCSADM.PROFILE") If nResult = 0 Then NextRowForm.sNRDST = oDSTDIC.GetDST() NextRowForm.Sh

Page 47

120 CHAPTER 3PCDSQL Public oNRSQL As New PCDSQL Public nNumRows As Long Public nNumCols As Long Public nRowsViewed As Long Private Sub cbCancel_Cli

Page 48

DM API OBJECTS 121PCDSQL End Sub Private Sub cbNextRow_Click() Dim nResult As Long 'Increment the nRowsViewed count. nRowsVie

Page 49 - An Overview of the DM API

122 CHAPTER 3PCDSQL If nResult = 0 Then nNumRows = oNRSQL.GetRowCount() 'If there are more than one row then lets do it. If nN

Page 50 - List of DM API Objects

DM API OBJECTS 123PCDSQLPublic oNextKey As New PCDSQL Private Sub cbCancel_Click() Unload NextKeyForm End Sub Private Sub cbNextKey_Click()

Page 51 - Early and Late Binding

124 CHAPTER 3PCDSQLRelated ItemsSee the following methods: See the following properties:ErrDescription ErrNumber Execute GetColumnCount GetColumn

Page 52 - PCDDocObject

DM API OBJECTS 125PCDTrusteeListPCDTrusteeListUse PCDTrusteeList to manipulate the trustee list associated with DM.SyntaxPCDTrusteeList.methodOrP

Page 53 - PCDGetDoc

126 CHAPTER 3PCDTrusteeList

Page 54 - PCDGetStream

Chapter 4DM API METHODS AND PROPERTIES 127DM API Methods and PropertiesIn This ChapterThis chapter describes the methods and properties associate

Page 55 - PCDNetAliasList

128 CHAPTER 4AddLoginAddLoginUse this method to set the logon information that gets passed to the DM Server. The DM Server authenticates the logon in

Page 56

DM API METHODS AND PROPERTIES 129AddLogin'dimensioned as constants. Const iLibraryLogin As Integer = 0 Const iNetWareBindery As Intege

Page 57

xvPrefaceAbout This GuideThis guide describes the application programming interface (API) that is available as part of DM. It identifies each of

Page 58

130 CHAPTER 4AddLogin 'DM API supports. MyLoginType.LIBRARY_LOGIN = 0 MyLoginType.NETWORK_BINDERY = 1 MyLoginType.NETWORK_NDS = 2

Page 59

DM API METHODS AND PROPERTIES 131AddLoginEnd Sub . . .Related ItemsSee the following objects:PCDLogin PCDGetLoginLibs See the following methods

Page 60

132 CHAPTER 4AddLoginLicensedAddLoginLicensedThe “Allow SQL Passthrough” setting in the DM system parameter settings dialog can be used to deny acces

Page 61

DM API METHODS AND PROPERTIES 133AddLoginLicensedParametersUsageBefore you do a call to AddLoginLicensed, you need to get the logon libraries ava

Page 62 - 42 CHAPTER 2

134 CHAPTER 4AddLoginLicensed strMyDomain, strMyUserID, _ strMyPassword, strAppID, _ strLicenseKey

Page 63 - DM API Objects

DM API METHODS AND PROPERTIES 135AddOrderByPropertyAddOrderByPropertyAddOrderByProperty allows you to set the order that search results are retur

Page 64

136 CHAPTER 4AddOrderByProperty'Create the search object. Dim pSearch As New PCDSearch 'Set the document security token (DST). pSearch.Set

Page 65

DM API METHODS AND PROPERTIES 137AddPropertyAddPropertyUse this method to add a property/value pair to a property value list.SyntaxPCDPropertyLis

Page 66

138 CHAPTER 4AddReturnMetaPropertyAddReturnMetaPropertyThe AddReturnMetaProperty method allows you to retrieve information about the data requested i

Page 67

DM API METHODS AND PROPERTIES 139AddReturnMetaPropertyParameter ReturnsReturns a VARIANT return value that contains the value of the requested p

Page 68

xvi CHAPTER 3Documentation ConventionsThis book uses the following fonts and styles to indicate different types of information. Related Documentation

Page 69

140 CHAPTER 4AddReturnPropertyAddReturnProperty Use this method to add a property to the list of objects that you want a search to return to you. No

Page 70

DM API METHODS AND PROPERTIES 141AddReturnPropertypSearch.SetDST( strDST ) 'Add the Library you want to search. pSearch.AddSearchLib( "

Page 71

142 CHAPTER 4AddSearchCriteriaAddSearchCriteriaUse this method to add a property name with search criteria to the search. SyntaxPCDGetDoc.AddSearchCr

Page 72

DM API METHODS AND PROPERTIES 143AddSearchCriteriaDST = pClient.GetDST() 'Now that you have the DST, create a search object. pSearch = Serv

Page 73

144 CHAPTER 4AddSearchCriteriaRelated ItemsSee the following objects:PCDGetDoc PCDLookup PCDPutDoc PCDRecentDoc PCDSearch See the following prop

Page 74

DM API METHODS AND PROPERTIES 145AddSearchLibAddSearchLibUse this method to add a library name to the list of libraries to search. Your search wi

Page 75

146 CHAPTER 4AddSearchLib 'Pass the DST to the search object. pSearch.SetDST( DST ) 'Get the search library from the form. searchLib = txt

Page 76

DM API METHODS AND PROPERTIES 147AddTrusteeAddTrusteeUse this method to add a trustee to the trustee list. If there is already a trustee in the l

Page 77

148 CHAPTER 4AddTrusteeBeginIter DeleteTrustee GetCurrentTrusteeFlags GetCurrentTrusteeName GetCurrentTrusteeRights GetSize GetTrusteeIndex Get

Page 78

DM API METHODS AND PROPERTIES 149AddUserFilterCriteriaAddUserFilterCriteriaUse this method to add a property name with user filter criteria to a

Page 79

xviiProfessional ServicesHummingbird’s Professional Services’ consultants and educators successfully design, create, and implement powerful integ

Page 80

150 CHAPTER 4BeginGetBlockBeginGetBlockUse this method to tell the object that you are beginning a block of “Get” operations so that it will hold the

Page 81

DM API METHODS AND PROPERTIES 151BeginIterBeginIterUse this method to position the current pointer to the first position in a list. This method b

Page 82

152 CHAPTER 4BeginIterErrDescription ErrNumber

Page 83

DM API METHODS AND PROPERTIES 153BytesReadBytesReadThis property is always set during a Read operation. It contains the number of bytes returned

Page 84

154 CHAPTER 4BytesWrittenBytesWrittenThis property is always set during a Write operation. It contains the number of bytes written to disk by the cal

Page 85

DM API METHODS AND PROPERTIES 155ClearOrderByPropertiesClearOrderByPropertiesUse this method to clear properties used to order results from a loo

Page 86

156 CHAPTER 4ClearUserFilterCriteriaClearUserFilterCriteriaUse this method to clear user filter criteria from a lookup. SyntaxPCDLookup.ClearUserFilt

Page 87

DM API METHODS AND PROPERTIES 157CloneCloneThis method clones a duplicate copy of the current PCDEnumPropertyLists object.SyntaxPCDEnumPropertyLi

Page 88

158 CHAPTER 4ColumnCountColumnCountUse this method to return the number of columns in the return data. This will always be equal to or greater than t

Page 89

DM API METHODS AND PROPERTIES 159CreateCreateUse this method to create the object that has been identified by the SetObjectType method.SyntaxPCDD

Page 90

xviii CHAPTER 3Where to Go for InformationOn the Web Our Web site at www.hummingbird.com/support/dkm/ carries the most up-to-date information about H

Page 91

160 CHAPTER 4DeleteDeleteUse this method to delete the DM object described by the information that has been set.SyntaxPCDDocObject.Delete()ReturnsRet

Page 92

DM API METHODS AND PROPERTIES 161DeletePropertyDeletePropertyUse this method to delete a property from the property list based on its index (rela

Page 93

162 CHAPTER 4DeletePropertyAddProperty BeginIter GetCurrentPropertyName GetCurrentPropertyValue GetPropertyIndex NextProperty See the following prope

Page 94

DM API METHODS AND PROPERTIES 163DeleteTrusteeDeleteTrusteeUse this method to delete from the list of trustees a trustee at a given offset. Synta

Page 95

164 CHAPTER 4EndGetBlockEndGetBlockEndGetBlock informs the server that you finished retrieving a series of items. This allows the DM API to release t

Page 96

DM API METHODS AND PROPERTIES 165ErrDescriptionErrDescriptionThis property provides a text description of the status from the last call. All DM A

Page 97

166 CHAPTER 4ErrNumberErrNumberThis property provides a numeric status that identifies any error condition resulting from the last call.SyntaxPCDErro

Page 98

DM API METHODS AND PROPERTIES 167ExecuteExecuteThe Execute method is supported for use in many API objects. After you set any necessary criteria

Page 99

168 CHAPTER 4ExecuteExampleThis reference guide contains many examples that show the use of the Execute method, starting with the The Logon Process s

Page 100 - PCDNetworkInfo

DM API METHODS AND PROPERTIES 169FetchFetchUse this method to retrieve information about an object. SyntaxPCDDocObject.Fetch()ReturnsReturns an H

Page 101

xix4 Follow the on-screen instructions and install the program. When complete, exit the DM Product Line Installation menu.To access the entire DM

Page 102

170 CHAPTER 4FetchTrusteesFetchTrusteesUse this method to fetch trustees from the DM Server. SyntaxPCDDocObject.FetchTrustees()ReturnsReturns an HRES

Page 103 - PCDPropertyList

DM API METHODS AND PROPERTIES 171FetchTrustees Set objDOC = CreateObject( _ "PCDClient.PCDDocObject") 'Create the pro

Page 104

172 CHAPTER 4FetchTrustees 'Does the document have security? ' 0 = no; 1 = yes LDefaultRights = _ o

Page 105

DM API METHODS AND PROPERTIES 173FetchTrustees & "permission to edit the security of " _ & "this document:

Page 106

174 CHAPTER 4GetAliasListGetAliasListUse this method to get a pointer to the PCDNetAliasList object that contains a list of all the network aliases t

Page 107

DM API METHODS AND PROPERTIES 175GetAtGetAtUse this method to get a Library name string at a specific index in the list of logon libraries.Syntax

Page 108

176 CHAPTER 4GetColumnCountGetColumnCountThe GetColumnCount method retrieves the number of SQL columns in a result set. It references the current res

Page 109

DM API METHODS AND PROPERTIES 177GetColumnNameGetColumnNameThis method retrieves the name of the specified column in the current SQL result set.

Page 110

178 CHAPTER 4GetColumnValueGetColumnValueThis method retrieves the data contents of the specified column in the current SQL result set. SyntaxPCDSQL.

Page 111

DM API METHODS AND PROPERTIES 179GetCurrentPropertyNameGetCurrentPropertyNameUse this method to get the name of the property to which the current

Page 112

DM API Reference GuideVersion: 5.1.0.5Copyright © 1998-2004 Hummingbird Ltd. All rights reserved.Electronic Publication Date: April 2004Hummingbird

Page 113

xx CHAPTER 3Training Hummingbird’s Education Services offers courses at authorized training centers worldwide. For more information or to register fo

Page 114

180 CHAPTER 4GetCurrentPropertyValueGetCurrentPropertyValueUse this method to get the value of the property to which the current property pointer poi

Page 115

DM API METHODS AND PROPERTIES 181GetCurrentTrusteeFlagsGetCurrentTrusteeFlagsUse this method in a BeginIter/NextTrustee loop to get the trustee f

Page 116 - PCDPropertyLists

182 CHAPTER 4GetCurrentTrusteeNameGetCurrentTrusteeNameUse this method in a BeginIter/NextTrustee loop to get the trustee name for the current entry

Page 117 - PCDPutDoc

DM API METHODS AND PROPERTIES 183GetCurrentTrusteeRightsGetCurrentTrusteeRightsUse this method in a BeginIter/NextTrustee loop to get the trustee

Page 118

184 CHAPTER 4GetDBVendorGetDBVendorThe GetDBVendor method retrieves the numeric identifier associated with the SQL database software in use with the

Page 119

DM API METHODS AND PROPERTIES 185GetDomainListGetDomainListThis method allows you to retrieve a list of all other network domains that are access

Page 120

186 CHAPTER 4GetDomainListErrDescription ErrNumber

Page 121

DM API METHODS AND PROPERTIES 187GetDOCSUserNameGetDOCSUserNameAfter calling PCDLogin.Execute, use this method to determine the DM USER_ID with w

Page 122 - PCDPutStream

188 CHAPTER 4GetDSTGetDSTUse this method to get the document security token (DST) that the server returns after a call to the Execute method of the P

Page 123 - PCDRecentDoc

DM API METHODS AND PROPERTIES 189GetFailedLoginListGetFailedLoginListUse this method to get a PCDNetAliasList object pointer to an object contain

Page 124

Chapter 1THE DM ARCHITECTURE 1The DM ArchitectureIn This ChapterThis chapter provides an overview of the DM functionality, illustrating how the m

Page 125 - PCDSearch

190 CHAPTER 4GetFailedLoginListSee the following properties:ErrDescription ErrNumber

Page 126

DM API METHODS AND PROPERTIES 191GetGroupListGetGroupListThe GetGroupList method populates the result set with a list of the various groups that

Page 127 - DM API OBJECTS 107

192 CHAPTER 4GetGroupListErrDescription ErrNumber

Page 128 - GetDST = msDST

DM API METHODS AND PROPERTIES 193GetGroupMembersGetGroupMembersThis method retrieves the user IDs that are present in the specified group. There

Page 129 - SetDST( oDIC.GetDST() )

194 CHAPTER 4GetGroupMembersSee the following properties:ErrDescription ErrNumber

Page 130 - 110 CHAPTER 3

DM API METHODS AND PROPERTIES 195GetLoginLibraryGetLoginLibraryUse this method to retrieve the name of the DM library where the user is currently

Page 131 - PCDSQL object

196 CHAPTER 4GetMetaPropertyValueGetMetaPropertyValueUse this method to get the value of a property from metadata that is returned when a search or l

Page 132 - 112 CHAPTER 3

DM API METHODS AND PROPERTIES 197GetMetaPropertyValue• %Visible is a flag indicating whether or not this Lookup list box column should be display

Page 133 - ReleaseResults

198 CHAPTER 4GetMetaRowsFoundGetMetaRowsFoundUse this method to identify the total number of rows of metadata that are returned when your search or l

Page 134 - ReleaseResults()

DM API METHODS AND PROPERTIES 199GetMetaRowsFoundRelated ItemsSee the following objects:PCDLookup PCDRecentDoc PCDSearch See the following proper

Page 135 - DM API OBJECTS 115

2 CHAPTER 1The DM Multi-Tier ArchitectureThe DM Multi-Tier ArchitectureDM is an application that runs on Windows NT/2000/XT Pro systems. As shown in

Page 136 - 116 CHAPTER 3

200 CHAPTER 4GetNextKeyGetNextKeyGetNextKey generates the next numeric value for a primary key column in the SQL database. This is true for all SQL d

Page 137 - SetRow(nRowIndex)

DM API METHODS AND PROPERTIES 201GetNextKeyMost of the tables in the DM SQL database have a SYSTEM_ID column as their primary key. DM generates p

Page 138 - PCDLogin

202 CHAPTER 4GetNextKeyfollowing exceptions: —The SYSTEMKEY column is maintained in Oracle as the SEQSYSTEMKEY sequence key.—Other primary keys have

Page 139 - DM API OBJECTS 119

DM API METHODS AND PROPERTIES 203GetPrimaryGroupGetPrimaryGroupUse this method to get the DM GROUP_ID that identifies the user’s primary group. Y

Page 140

204 CHAPTER 4GetPropertiesGetPropertiesUse this method to create a PCDPropertyList object and to copy the properties in the PCDDocObject’s internal l

Page 141 - GetColumnValue(i)

DM API METHODS AND PROPERTIES 205GetPropertyGetPropertyUse this method to get the value of a property. This value may have been previously set wi

Page 142 - GetColumnCount()

206 CHAPTER 4GetPropertyIndexGetPropertyIndexUse this method to get the property index of a named property. Check the ErrNumber property after callin

Page 143 - GetNextKey("")

DM API METHODS AND PROPERTIES 207GetPropertyIndexExampleThis sample code demonstrates the GetPropertyIndex call on the PCDPropertyList object. Th

Page 144 - Related Items

208 CHAPTER 4GetPropertyIndex nIndex = _ oIndexFormProps.GetPropertyIndex( _ sPropName )

Page 145 - PCDTrusteeList

DM API METHODS AND PROPERTIES 209GetPropertyValueGetPropertyValueUse this method to get the value of the named property from the current row in t

Page 146

THE DM ARCHITECTURE 3DM FunctionalityThe DM Server is a transaction server, similar to Microsoft SQL Server. The DM Server manages database conne

Page 147 - DM API Methods and Properties

210 CHAPTER 4GetPropertyValuePCDGetDoc PCDGetForm PCDGetStream PCDPropertyList PCDPropertyLists PCDPutDoc PCDPutStream PCDRecentDoc PCDSearch

Page 148 - AddLogin

DM API METHODS AND PROPERTIES 211GetPropertyValueByIndexGetPropertyValueByIndexUse this method to get the value of a return property based on its

Page 149

212 CHAPTER 4GetPropertyValueByIndexErrDescription ErrNumber

Page 150

DM API METHODS AND PROPERTIES 213GetReturnPropertiesGetReturnPropertiesUse this method to get a copy of the list of properties that the server wi

Page 151

214 CHAPTER 4GetReturnPropertiesNextProperty SetProperty SetReturnProperties See the following properties:ErrDescription ErrNumber

Page 152 - AddLoginLicensed

DM API METHODS AND PROPERTIES 215GetReturnPropertyGetReturnPropertyUse this method to get the value of a return property. SyntaxPCDDocObject.GetR

Page 153

216 CHAPTER 4GetRowCountGetRowCountUse the GetRowCount method to determine the number of rows that a result data set returns.SyntaxPCDNetworkInfo.Get

Page 154

DM API METHODS AND PROPERTIES 217GetRowsAffectedGetRowsAffectedThis method reports the number of rows in the SQL database that were affected by t

Page 155 - AddOrderByProperty

218 CHAPTER 4GetRowsFoundGetRowsFoundUse this method to get the number of rows found as a result of a search operation. SyntaxPCDGetDoc.GetRowsFound(

Page 156

DM API METHODS AND PROPERTIES 219GetRowsFoundPCDSearch See the following properties:ErrDescription ErrNumber

Page 157 - AddProperty

Document Security TokensA document security token (DST) is initially constructed by DM when a user logs on via a client application to the server and

Page 158 - AddReturnMetaProperty

220 CHAPTER 4GetSearchCriteriaGetSearchCriteriaUse this method to get a PCDPropertyList object pointer to a copy of the list of search criteria that

Page 159

DM API METHODS AND PROPERTIES 221GetSizeGetSizeUse this method to get the number items in a list. For example, you can use GetSize to request the

Page 160 - AddReturnProperty

222 CHAPTER 4GetSizeSee the following properties:ErrDescription ErrNumber

Page 161

DM API METHODS AND PROPERTIES 223GetSQLErrorCodeGetSQLErrorCodeThis method retrieves the native SQL error code as returned by the library’s datab

Page 162 - AddSearchCriteria

224 CHAPTER 4GetSQLErrorCodeExampleThe Example in PCDSQL illustrates the use of the GetSQLErrorCode.Related ItemsSee the PCDSQL object.See the follow

Page 163

DM API METHODS AND PROPERTIES 225GetTrusteeGetTrusteeUse this method to get the trustee rights value for the trustee you specify.SyntaxPCDDocObje

Page 164

226 CHAPTER 4GetTrusteeSee the following properties:ErrDescription ErrNumber

Page 165 - AddSearchLib

DM API METHODS AND PROPERTIES 227GetTrusteeIndexGetTrusteeIndexUse this method to locate the index location of a trustee in a list of trustees. S

Page 166

228 CHAPTER 4GetTrusteeIndexErrDescription ErrNumber

Page 167 - AddTrustee

DM API METHODS AND PROPERTIES 229GetTrusteeRightsGetTrusteeRightsUse this method to get the trustee rights for an entry in a trustee list at an i

Page 168

THE DM ARCHITECTURE 5Types of DM ObjectsThe DM Object Model consists of Distributed Component Object Model (DCOM) objects that are exposed via DM

Page 169 - AddUserFilterCriteria

230 CHAPTER 4GetTrusteesGetTrusteesOnce a list of trustees has been retrieved from the SQL database by use of FetchTrustees, use this method to popul

Page 170 - BeginGetBlock

DM API METHODS AND PROPERTIES 231GetUserFullNameGetUserFullNameThis method retrieves the full name of the user from the network operating system.

Page 171 - BeginIter

232 CHAPTER 4GetUserFullNameRelated ItemsSee the PCDNetworkInfo object.See the GetValue method.See the following properties:ErrDescription ErrNumber

Page 172

DM API METHODS AND PROPERTIES 233GetUserGroupsGetUserGroupsThis method allows you to load a result set with the security groups that include the

Page 173 - BytesRead

234 CHAPTER 4GetUserGroupsExampleThe Example in the discussion of the PCDNetworkInfo object shows how you can use this method.Related ItemsSee the PC

Page 174 - BytesWritten

DM API METHODS AND PROPERTIES 235GetUserListGetUserListThis method retrieves the set of user ID values that exist within the network domain that

Page 175 - ClearOrderByProperties

236 CHAPTER 4GetUserListExampleThe Example in the discussion of the PCDNetworkInfo object shows how you can use this method.Related ItemsSee the PCDN

Page 176 - ClearUserFilterCriteria

DM API METHODS AND PROPERTIES 237GetValueGetValueThe GetValue method retrieves the next value from the current result set. SyntaxPCDNetworkInfo.G

Page 177

238 CHAPTER 4GrantRightGrantRightUse this method to set the named bit in the rights mask for the specified user or group. SyntaxPCDDocObject.GrantRig

Page 178 - ColumnCount

DM API METHODS AND PROPERTIES 239GrantRightThe following QuickSearch rights are supported: Related ItemsSee the PCDDocObject object.See the foll

Page 179

6 CHAPTER 1Types of DM Objects• Query (read only), which is used for search, Quick Retrieve, and lookups.• PCDDocObject (read/write), which implement

Page 180

240 CHAPTER 4HasRightHasRightUse this method to determine if the specified user or group rights mask permits the right you specify. SyntaxPCDDocObjec

Page 181 - DeleteProperty

DM API METHODS AND PROPERTIES 241HasRightThe following QuickSearch rights are supported: ExampleThe Example in the discussion of the FetchTruste

Page 182

242 CHAPTER 4IsEmptyIsEmptyUse this method to check whether an empty document was uploaded. SyntaxPCDASPFileUpload.IsEmpty()ReturnsIsEmpty returns a

Page 183 - DeleteTrustee

DM API METHODS AND PROPERTIES 243IsMemberOfIsMemberOfThis method reports whether or not a user ID is a member of the network group that you speci

Page 184 - EndGetBlock

244 CHAPTER 4IsMemberOfa call to NextRow returns FALSE. No results are returned if either the Domain name or the Group name is blank.ExampleSee the E

Page 185 - ErrDescription

DM API METHODS AND PROPERTIES 245NewEnumNewEnumThis method provides standard-style C++ COM Enum access to the object.SyntaxPCDPropertyLists.NewEn

Page 186 - ErrNumber

246 CHAPTER 4NextNextThis method returns PCDPropertyList items from the PCDPropertyLists object. You specify the number of items that you want return

Page 187 - Parameter

DM API METHODS AND PROPERTIES 247NextMetaRowNextMetaRowUse this method to increment the current pointer in the metadata results set. SyntaxPCDLoo

Page 188

248 CHAPTER 4NextPropertyNextPropertyUse this method to increment the internal pointer for the current property list so it points to the next propert

Page 189

DM API METHODS AND PROPERTIES 249NextRowNextRowThis method increments the current row pointer.SyntaxPCDGetDoc.NextRow()PCDLookup.NextRow()PCDNetw

Page 190 - FetchTrustees

THE DM ARCHITECTURE 7The Logon Process• PCDError• PCDGetLoginLibs• PCDLogin• PCDNetAliasListDM Query Objects Query objects are used to search the

Page 191

250 CHAPTER 4NextRowPCDPutDoc PCDRecentDoc PCDSearch PCDSQL See the following methods:Execute GetMetaPropertyValue GetMetaRowsFound GetPropertyValu

Page 192

DM API METHODS AND PROPERTIES 251NextTrusteeNextTrusteeUse this method to iterate through the trustees in the trustee list. SyntaxPCDTrusteeList.

Page 193

252 CHAPTER 4OnEndPageOnEndPageThe Active Server Pages (ASP) engine calls this method to clean up ASP objects.SyntaxPCDASPFileUpload.OnEndPage() Caut

Page 194 - GetAliasList

DM API METHODS AND PROPERTIES 253OnStartPageOnStartPageThe Active Server Pages (ASP) engine calls this method to initialize pointers to ASP objec

Page 195 - Parameters

254 CHAPTER 4ReadReadUse this method to read binary data from a physical file.SyntaxPCDGetStream.Read( lngBytes, [ lngBytesRead ] )ParametersReturnsR

Page 196 - GetColumnCount

DM API METHODS AND PROPERTIES 255ReleaseResultsReleaseResultsUse this method to release the results that are currently held in memory as a result

Page 197 - GetColumnName

256 CHAPTER 4ResetResetThis method resets the PCDEnumPropertyLists object’s pointer to the first entry in the list of PCDPropertyList objects in the

Page 198 - GetColumnValue

DM API METHODS AND PROPERTIES 257RevokeRightRevokeRightUse this method to turn off a named bit in the supplied rights mask.SyntaxPCDDocObject.Rev

Page 199 - GetCurrentPropertyName

258 CHAPTER 4RevokeRightThe following QuickSearch rights are supported: ReturnsReturns an integer that contains the rights mask as it exists after t

Page 200 - GetCurrentPropertyValue

DM API METHODS AND PROPERTIES 259SeekSeekUse this method to position the file’s current position pointer to a specific byte offset within the phy

Page 201 - GetCurrentTrusteeFlags

8 CHAPTER 1The Logon ProcessGetting a List of Available LibrariesThe following example displays a list of libraries managed by the DM Server that the

Page 202 - GetCurrentTrusteeName

260 CHAPTER 4SetChunkFactorSetChunkFactorThis method sets the number of rows to retrieve from the server results set when a SQL call is made. The def

Page 203 - GetCurrentTrusteeRights

DM API METHODS AND PROPERTIES 261SetChunkFactorErrDescription ErrNumber

Page 204 - GetDBVendor

262 CHAPTER 4SetCompleteSetCompleteFor languages such as JavaScript and VBScript that do not give the user explicit control over when an interface is

Page 205 - GetDomainList

DM API METHODS AND PROPERTIES 263SetDSTSetDSTUse this method to set the document security token (DST) that will be used in processing the search

Page 206

264 CHAPTER 4SetDSTbeen granted to you. The DST can be used across multiple DM libraries.ExampleThe SetDST method is used in many examples throughout

Page 207 - GetDOCSUserName

DM API METHODS AND PROPERTIES 265SetLibrarySetLibraryThis method sets the DM library that is to be used with the current instance of the PCDSQL o

Page 208

266 CHAPTER 4SetLookupIdSetLookupIdUse this method to set the lookup form that you want to process. Similar to searches, lookups are controlled by fo

Page 209 - GetFailedLoginList

DM API METHODS AND PROPERTIES 267SetLookupIdErrDescription ErrNumber

Page 210

268 CHAPTER 4SetMaxRowsSetMaxRowsUse this method to set the maximum number of rows to be returned by your lookup or search. SyntaxPCDLookup.SetMaxRow

Page 211 - GetGroupList

DM API METHODS AND PROPERTIES 269SetMaxRowsErrDescription ErrNumber

Page 212

THE DM ARCHITECTURE 9The Logon Process If (opOK) Then libname = Libs.GetAt(i) opOK = opOK And Libs.ErrNumber = 0 If i = 0 Th

Page 213 - GetGroupMembers

270 CHAPTER 4SetMetaRowSetMetaRowUse this method to set the pointer to the current metadata row in the results set to a specific row number. SyntaxPC

Page 214

DM API METHODS AND PROPERTIES 271SetMetaRowSee the following properties:ErrDescription ErrNumber

Page 215 - GetLoginLibrary

272 CHAPTER 4SetObjectTypeSetObjectTypeUse this method to set the object type. For PCDDocObject and PCDGetForm the object is a form available to the

Page 216 - GetMetaPropertyValue

DM API METHODS AND PROPERTIES 273SetObjectTypePCDPropertyLists See the following methods:Create Fetch Update See the following properties:Err

Page 217

274 CHAPTER 4SetOptionsSetOptionsThis method allows you to set recursion and level options for items in property list collections.SyntaxPCDPropertyLi

Page 218 - GetMetaRowsFound

DM API METHODS AND PROPERTIES 275SetOptionsRelated ItemsSee the following objects:PCDPropertyList PCDPropertyLists See the following properties

Page 219

276 CHAPTER 4SetPropertiesSetPropertiesUse this method to set an object with a collection of properties. Any previously set properties are deleted.Sy

Page 220 - GetNextKey

DM API METHODS AND PROPERTIES 277SetPropertySetPropertyUse this method to set a property to be used with a Create, Execute, or Update method. If

Page 221

278 CHAPTER 4SetPropertyErrDescription ErrNumber

Page 222

DM API METHODS AND PROPERTIES 279SetReturnPropertiesSetReturnPropertiesUse this method to set PCDRecentDoc or PCDSearch objects with a collection

Page 223 - GetPrimaryGroup

iiiContentsPrefaceAbout This Guide xvWho Should Read This Guide xvHow This Guide Is Organized xvDocumentation Conventions xviRelated Docu

Page 224 - GetProperties

10 CHAPTER 1The Logon Process Dim lim As Long Dim LoginType As Integer Dim emsg As String If (NetworkType = "Network Bindery") Th

Page 225 - GetProperty

280 CHAPTER 4SetRowSetRowUse this method to set the row pointer in the results set to a specific row.Syntax PCDGetDoc.SetRow( lngRowNbr )PCDLookup.

Page 226 - GetPropertyIndex

DM API METHODS AND PROPERTIES 281SetRowPCDGetDoc PCDLookup PCDPutDoc PCDRecentDoc PCDSearch See the following methods:GetColumnValue GetProperty

Page 227

282 CHAPTER 4SetSearchCriteriaSetSearchCriteriaUse this method to set the search criteria to be used in the current search.SyntaxPCDGetDoc.SetSearchC

Page 228

DM API METHODS AND PROPERTIES 283SetSearchCriteriaPCDSearch See the following methods:AddSearchCriteria GetSearchCriteria See the following prope

Page 229 - GetPropertyValue

284 CHAPTER 4SetSearchObjectSetSearchObjectUse this method to identify the form that you want to use to process the specified operation. SyntaxPCDG

Page 230

DM API METHODS AND PROPERTIES 285SetSearchObjectPCDRecentDoc PCDSearch See the following properties:ErrDescription ErrNumber

Page 231 - GetPropertyValueByIndex

286 CHAPTER 4SetTargetPropertySetTargetPropertyUse this method to set the target property of a lookup.SyntaxPCDLookup.SetTargetProperty( strTargetPro

Page 232

DM API METHODS AND PROPERTIES 287SetTargetPropertyErrDescription ErrNumber

Page 233 - GetReturnProperties

288 CHAPTER 4SetTrusteeSetTrusteeUse this method to set a trustee value in a trustee list. If the trustee name and flags match an existing entry in t

Page 234

DM API METHODS AND PROPERTIES 289SetTrusteeSetTrustees See the following properties:ErrDescription ErrNumber

Page 235 - GetReturnProperty

THE DM ARCHITECTURE 11DM Search Transactions txtPassword.SelStart = 0 txtPassword.SelLength = Len(txtPassword.Text) End If 'Du

Page 236 - GetRowCount

290 CHAPTER 4SetTrusteesSetTrusteesUse this method to copy all the trustee entries from a PCDTrusteeList object into the internal trustee list for th

Page 237 - GetRowsAffected

DM API METHODS AND PROPERTIES 291SetTrusteesErrDescription ErrNumber

Page 238 - GetRowsFound

292 CHAPTER 4SetTrusteeRightsSetTrusteeRightsUse this method to update the Trustee rights for a trustee at a given offset in the trustee list.SyntaxP

Page 239

DM API METHODS AND PROPERTIES 293SkipSkipThis method skips PCDPropertyList objects in the PCDPropertyLists collection. You specify how many objec

Page 240 - GetSearchCriteria

294 CHAPTER 4UnitNameUnitNameUse this method to get unit name of an entry in a PCDLogin list that a PCDNetAliasList object is accessing.SyntaxPCDNetA

Page 241

DM API METHODS AND PROPERTIES 295UnitTypeUnitTypeUse this method to get unit type of an entry in a PCDLogin list that a PCDNetAliasList object is

Page 242 - See the following properties:

296 CHAPTER 4UnitTypeUnitName UserName See the following properties:ErrDescription ErrNumber

Page 243 - GetSQLErrorCode

DM API METHODS AND PROPERTIES 297UpdateUpdateThis method updates a PCDDocObject using the information that has previously been set by other metho

Page 244

298 CHAPTER 4UpdateTrusteesUpdateTrusteesUse this method to update trustee information for a PCDDocObject object.SyntaxPCDDocObject.UpdateTrustees()R

Page 245 - GetTrustee

DM API METHODS AND PROPERTIES 299UserNameUserNameUse this method to get user name of an entry in a PCDLogin list that a PCDNetAliasList object is

Page 246

12 CHAPTER 1DM Search Transactions3 The DM Server does the following:— Captures search criteria, and immediately returns a “no results” message to th

Page 247 - GetTrusteeIndex

300 CHAPTER 4WriteWriteUse this method to write binary data to a physical file. SyntaxPCDPutStream.Write( vntData, lngBytes )ParametersReturnsReturns

Page 248

Chapter 5DM API TOKENS 301DM API TokensIn This ChapterThis chapter presents an alphabetical list of DM tokens. Each entry discusses the syntax, u

Page 249 - GetTrusteeRights

302 CHAPTER 5%ADD_ATTACHMENT%ADD_ATTACHMENTThis token is used with the %VERSION_DIRECTIVE token to add an attachment. See %VERSION_DIRECTIVE for furt

Page 250 - GetTrustees

DM API TOKENS 303%ATTACHMENT_ID%ATTACHMENT_IDThis token is used by the Update method that PCDDocObject supports to add an attachment to the docum

Page 251 - GetUserFullName

%CHECKIN_DATEThis token is used in the Update method that the PCDDocObject objec t supports when the object is being checked out or locked. SyntaxPCDD

Page 252

DM API TOKENS 305%CHECKOUT_COMMENT%CHECKOUT_COMMENTThis token is used in the Update method that the PCDDocObject object supports to specify the c

Page 253 - GetUserGroups

306 CHAPTER 5%CONTENT%CONTENTThis token is used to retrieve a stream for the content of the document. It can also be used to update the document.Synt

Page 254

DM API TOKENS 307%CONTENT 'Report the total components (or rows). iCount = pGetDoc.GetReturnValue(%NUM_COMPONENTS) MsgBox(“The totoal number

Page 255 - GetUserList

308 CHAPTER 5%CONTENTS_AFTER_ITEM%CONTENTS_AFTER_ITEMThis token is used in conjunction with %CONTENTS_DIRECTIVE to specify that a folder should be mo

Page 256

DM API TOKENS 309%CONTENTS_AFTER_ITEMCONTENTS_MOVE_AFTER") 'Update the document. pDocObject.Update() 'Check for errors. checkErr

Page 257 - GetValue

THE DM ARCHITECTURE 13DM Search Transactionsoperation. The default is 10. You do not need to repeat the execution of the search to get the next c

Page 258 - GrantRight

310 CHAPTER 5%CONTENTS_COPY_CONTENTS%CONTENTS_COPY_CONTENTSThis token is used in conjunction with %CONTENTS_DIRECTIVE to specify that a folder’s cont

Page 259

DM API TOKENS 311%CONTENTS_COPY_CONTENTS'Set the target folder. pDocObject.SetProperty("%CONTENTS_DST_PARENT", tarFolderNum) &apo

Page 260 - HasRight

312 CHAPTER 5%CONTENTS_DIRECTIVE%CONTENTS_DIRECTIVEThis token is used to manipulate the content of the folder. The following operations are supported

Page 261

DM API TOKENS 313%CONTENTS_DIRECTIVESee the following tokens:%CONTENTS_COPY_CONTENTS%CONTENTS_MOVE_AFTER%CONTENTS_MOVE_DOWN%CONTENTS_MOVE_TO_TOP%

Page 262

314 CHAPTER 5%CONTENTS_ITEM%CONTENTS_ITEMThis token identifies the system ID that identifies the object that is the primary subject of the current op

Page 263 - IsMemberOf

DM API TOKENS 315%CONTENTS_ITEM%CONTENTS_MOVE_DOWN %CONTENTS_MOVE_TO_TOP %CONTENTS_MOVE_UP

Page 264

316 CHAPTER 5%CONTENTS_MOVE_AFTER%CONTENTS_MOVE_AFTERThis token is used in conjunction with %CONTENTS_DIRECTIVE to specify that a folder should be re

Page 265

DM API TOKENS 317%CONTENTS_MOVE_AFTER'Specify the place. pDocObject.SetProperty("%CONTENTS_AFTER_ITEM", afterSystemID) 'Set

Page 266

318 CHAPTER 5%CONTENTS_MOVE_DOWN%CONTENTS_MOVE_DOWNUse this token in conjunction with %CONTENTS_DIRECTIVE to move a folder down by one position.Synta

Page 267 - NextMetaRow

DM API TOKENS 319%CONTENTS_MOVE_DOWN"%CONTENTS_MOVE_DOWN") 'Process the update. pDocObject.Update() 'Check for error(s). ch

Page 268 - NextProperty

14 CHAPTER 1DM Search Transactions rec.AddReturnProperty "LASTEDITDATE" rec.AddReturnProperty "DOCNAME" rec.AddReturnPropert

Page 269

320 CHAPTER 5%CONTENTS_MOVE_TO_TOP%CONTENTS_MOVE_TO_TOPUse this token in conjunction with %CONTENTS_DIRECTIVE to move a folder to the top of the coll

Page 270 - 250 CHAPTER 4

DM API TOKENS 321%CONTENTS_MOVE_TO_TOPpDocObject.SetProperty("%CONTENTS_DIRECTIVE", _ "%CONTENTS_MOVE_TO_TOP”) 'Perform the

Page 271 - NextTrustee

322 CHAPTER 5%CONTENTS_MOVE_UP%CONTENTS_MOVE_UPUse this token in conjunction with %CONTENTS_DIRECTIVE to move a folder up by one position.SyntaxPCDDo

Page 272 - OnEndPage

DM API TOKENS 323%CONTENTS_MOVE_UPpDocObject.SetProperty("%CONTENTS_DIRECTIVE", "%CONTENTS_MOVE_UP”) 'Perform the update pD

Page 273 - OnStartPage

324 CHAPTER 5%CONTENTS_REORDER_CONTENTS%CONTENTS_REORDER_CONTENTSUse this token in conjunction with %CONTENTS_DIRECTIVE to change the order of the fo

Page 274

DM API TOKENS 325%CONTENTS_REORDER_CONTENTS 'Set the new order. pDocObject.SetProperty("%CONTENTS_REORDER_ARRAY", pOrder) 'S

Page 275

326 CHAPTER 5%CONTENTS_SRC_PARENT%CONTENTS_SRC_PARENTThis token is used in conjunction with the %CONTENTS_DIRECTIVE token and the %CONTENTS_COPY_CONT

Page 276

DM API TOKENS 327%CONTENTS_SRC_PARENT_LIBRARY%CONTENTS_SRC_PARENT_LIBRARYThis token is used in conjunction with the %CONTENTS_DIRECTIVE token and

Page 277 - RevokeRight

328 CHAPTER 5%CONTENTS_SRC_PARENT_VERSION%CONTENTS_SRC_PARENT_VERSIONThis token is used in conjunction with the %CONTENTS_DIRECTIVE token and the %CO

Page 278

DM API TOKENS 329%CONTENTS_DST_PARENT%CONTENTS_DST_PARENTThis token is used in conjunction with the %CONTENTS_DIRECTIVE token and the %CONTENTS_C

Page 279

THE DM ARCHITECTURE 15DM Search Transactions row = row & _ rec.GetPropertyValue("TYPIST_ID") _

Page 280 - SetChunkFactor

330 CHAPTER 5%CONTENTS_DST_PARENT_LIBRARY%CONTENTS_DST_PARENT_LIBRARYThis token is used in conjunction with the %CONTENTS_DIRECTIVE token and the %CO

Page 281

DM API TOKENS 331%CONTENTS_DST_PARENT_VERSION%CONTENTS_DST_PARENT_VERSIONThis token is used in conjunction with the %CONTENTS_DIRECTIVE token and

Page 282 - SetComplete

332 CHAPTER 5%CONTENTS_PARENT%CONTENTS_PARENTThis token is used in conjunction with the %CONTENTS_REORDER_ARRAY token to reorganize a folder collecti

Page 283

DM API TOKENS 333%CONTENTS_PARENT_VERSION%CONTENTS_PARENT_VERSIONThis token is used in conjunction with the %CONTENTS_REORDER_ARRAY token to reor

Page 284

334 CHAPTER 5%CONTENTS_WHERE_USED%CONTENTS_WHERE_USEDUse this token in conjunction with %CONTENTS_DIRECTIVE to get the information about where the fo

Page 285 - SetLibrary

DM API TOKENS 335%CONTENTS_WHERE_USED 'Set the chunk size. PropLists.SetChunkFactor(size) 'Execute the search. PropLists.Execute() ch

Page 286 - SetLookupId

336 CHAPTER 5%COPYDOC%COPYDOCThis token is used when a document is created by copying content from another document.SyntaxPCDDocObject.SetProperty(“%

Page 287

DM API TOKENS 337%COPYDOC_LIBRARY%COPYDOC_LIBRARYThe %COPYDOC_LIBRARY token is used when document content from one library is copied to create a

Page 288 - SetMaxRows

338 CHAPTER 5%COPYDOC_VERSION%COPYDOC_VERSIONWhen document content is being copied to create a new document, this token identifies the version of the

Page 289

DM API TOKENS 339%DATA%DATAThe Execute method that PCDLookup supports returns both data and metadata. The %DATA token is used to retrieve the dat

Page 290 - SetMetaRow

16 CHAPTER 1DM Search Transactions 'Versions (dn) End If End SubPerforming a Simple SearchThe following example demonstrates how to do a si

Page 291

340 CHAPTER 5%DATARelated ItemsSee the PCDLookup object.See the GetMetaPropertyValue method.See the following tokens:%PROPERTYNAME %PROPERTYTYPE %TIT

Page 292 - SetObjectType

DM API TOKENS 341%DELETE_ALL%DELETE_ALLThis token is used with the SetProperty method that PCDDocObject supports. Used with the %DELETE_OPTION to

Page 293

342 CHAPTER 5%DELETE_EXPUNGE%DELETE_EXPUNGEThis token is reserved for future use. At the current time, it is not supported for use by the DM API.Rela

Page 294 - SetOptions

DM API TOKENS 343%DELETE_OPTION%DELETE_OPTIONThis token is used with the SetProperty method that PCDDocObject supports. It allows deletion of eit

Page 295

344 CHAPTER 5%DELETE_OPTIONSee the following methods:Delete SetPropertySee the following tokens:%DELETE_ALL %DELETE_EXPUNGE %DELETE_PHYSICAL_FILES

Page 296 - SetProperties

DM API TOKENS 345%DELETE_PHYSICAL_FILES%DELETE_PHYSICAL_FILESThis token is used with the SetProperty method that PCDDocObject supports. It allows

Page 297 - SetProperty

346 CHAPTER 5%DOCS_LIBRARY_NAME%DOCS_LIBRARY_NAMEWhen used with the PCDSearch object, this token retrieves the library name associated with the docum

Page 298

DM API TOKENS 347%DOCS_LIBRARY_NAME'Execute the search. pRelated.Execute Related ItemsSee the following objects:PCDPropertyLists PCDSearchSe

Page 299 - SetReturnProperties

348 CHAPTER 5%DOCUMENT_NUMBER%DOCUMENT_NUMBERThis token is used to specify the document number of the profiled item that the application requires.Syn

Page 300 - 280 CHAPTER 4

DM API TOKENS 349%DOCUMENT_NUMBERSee the SetProperty method.

Page 301

THE DM ARCHITECTURE 17DM Search Transactions rec.AddReturnProperty "SYSTEM_ID" rec.AddReturnProperty "TYPE_ID" rec.AddRe

Page 302 - SetSearchCriteria

350 CHAPTER 5%EFFECTIVE_RIGHTS%EFFECTIVE_RIGHTSEach document can be accessed by many users, and it can be customized. Using the Access control on the

Page 303

DM API TOKENS 351%EFFECTIVE_RIGHTS 'Check for errors. checkError(pDocObject, "ERROR_DOCPROFILEDSP_RIGHTS") 'Get the user&apo

Page 304 - SetSearchObject

352 CHAPTER 5%ELAPSED_TIME%ELAPSED_TIMEThis token sets the ELAPSED_TIME column of the ACTIVITYLOG table with the amount of time that the specified do

Page 305

DM API TOKENS 353%ELAPSED_TIMEpDocObject.SetProperty( "%STATUS", "%LOCK_FOR_CHECKOUT" ) 'Set the elapsed time. pDocObje

Page 306 - SetTargetProperty

354 CHAPTER 5%ENCAPSULATION_TYPE%ENCAPSULATION_TYPEWhen users indicate that they want to view documents, those documents must be transferred from the

Page 307

DM API TOKENS 355%ENCAPSULATION_TYPE'Check whether it is for the DM Viewer. If (rendition = "riff") Then pGetDoc.AddSearchCriteri

Page 308 - SetTrustee

356 CHAPTER 5%FILTER_DISABLED_ROWS%FILTER_DISABLED_ROWSSome tables have a DISABLED column, which allows the system to specify that a row is disabled.

Page 309

DM API TOKENS 357%FOLDERITEM_LIBRARY_NAME%FOLDERITEM_LIBRARY_NAMEWhen a new item is being linked, or added to, a folder, this token identifies th

Page 310 - SetTrustees

358 CHAPTER 5%FOLDERITEM_LIBRARY_NAME'Set the parent folder’s version. pDocObject.SetProperty("PARENT_VERSION", folderVersion) '

Page 311

DM API TOKENS 359%FORM_APPLICATION%FORM_APPLICATIONWhen used with the PCDPropertyList object, this token retrieves the application ID associated

Page 312 - SetTrusteeRights

18 CHAPTER 1DM Search Transactions rec.GetPropertyValue("SYSTEM_ID") _ & Chr(9) row = row & _

Page 313

360 CHAPTER 5%FORM_APPLICATION'Retrieve the requested information. pDocObject.Fetch() Related Items See the following objects:PCDDocObject PCDPr

Page 314 - UnitName

DM API TOKENS 361%FORM_DEFAULT_PRIMARY%FORM_DEFAULT_PRIMARYUse this token to identify the default profile form.SyntaxPCDPropertyList.GetPropertyV

Page 315 - UnitType

362 CHAPTER 5%FORM_DEFAULT_PRIMARY'Get all the properties. Set pFormProperties = pDocObject.GetReturnProperties() Dim intNumRows As Integer Set

Page 316

DM API TOKENS 363%FORM_LIST_TYPE%FORM_LIST_TYPEThis token is used to perform a search of a form. Returns a list properties describing the form.Sy

Page 317

364 CHAPTER 5%FORM_LIST_TYPE 'Run the search. pDMObj.Fetch() Related ItemsSee the PCDDocObject object.See the SetProperty method.

Page 318 - UpdateTrustees

DM API TOKENS 365%FORM_NAME%FORM_NAMEUse this token to set the name of a form that a search operation uses. After a search has been performed, th

Page 319 - UserName

366 CHAPTER 5%FORM_NAMEcheckError(pClient, "ERROR_DOCPROFILEDSP_PROFINFOEXECUTE") 'Get the returned properties. Set pProperties = pCl

Page 320

DM API TOKENS 367%FORM_PROFILE_DEFAULTS%FORM_PROFILE_DEFAULTSUse this token to retrieve the default settings for a form.SyntaxPCDPropertyList.Get

Page 321 - DM API Tokens

368 CHAPTER 5%FORM_PROFILE_DEFAULTS 'Instantiate a PCDPropertyList object. pPropList = pDocObj.GetReturnProperties() 'Populate a property

Page 322 - %ADD_ATTACHMENT

DM API TOKENS 369%FORM_TITLE%FORM_TITLEThis token is used to get the form title from the search result set. It is usually used when searching for

Page 323 - %ATTACHMENT_ID

THE DM ARCHITECTURE 19Document Objects reGrid.row = reGrid.RowSel reGrid.Col = 1 txtSelDocNumber = reGrid.Text docnumber = reGrid.Text

Page 324 - %CHECKIN_DATE

370 CHAPTER 5%FORM_TITLERelated ItemsSee the PCDPropertyList object.See the GetPropertyValue method.

Page 325 - %CHECKOUT_COMMENT

DM API TOKENS 371%FT_CHARACTER_SET%FT_CHARACTER_SETThis token is used to specify a character set for documents rendered in HTML format. SyntaxPCD

Page 326 - %CONTENT

372 CHAPTER 5%FT_CHARACTER_SETRelated ItemsSee the PCDGetDoc object.See the AddSearchCriteria method.

Page 327

DM API TOKENS 373%FT_CONFIDENCE%FT_CONFIDENCEThis token is used when a full text search is performed. It expresses the relevance of a document re

Page 328 - %CONTENTS_AFTER_ITEM

374 CHAPTER 5%FT_CONFIDENCE%FT_MARKER_LIST %FT_SCORE %FT_TIMESTAMP %FT_VCC_LIST %FT_VCC_RULES %SCORE_GRAPHIC %SCORE_PERCENT

Page 329

DM API TOKENS 375%FT_FORMAT%FT_FORMATThis token is used when a full text search is performed. This token specifies the document format. It is req

Page 330 - %CONTENTS_COPY_CONTENTS

376 CHAPTER 5%FT_FORMAT%FT_SCORE %FT_TIMESTAMP %FT_VCC_LIST %FT_VCC_RULES %SCORE_GRAPHIC %SCORE_PERCENT

Page 331

DM API TOKENS 377%FT_MARKER_LIST%FT_MARKER_LISTThis token is used when a full text search is performed. It allows the SearchServer™ to mark searc

Page 332 - %CONTENTS_DIRECTIVE

378 CHAPTER 5%FT_MARKER_LIST%FT_VCC_LIST %FT_VCC_RULES %SCORE_GRAPHIC %SCORE_PERCENT

Page 333

DM API TOKENS 379%FT_SCORE%FT_SCOREThis token is used when a full text search is performed. It expresses the relevance of the search criteria to

Page 334 - %CONTENTS_ITEM

ivChild Objects of PCDDocObject Objects 7The Logon Process 7Getting a List of Available Libraries 8Providing Library Access 9DM Search Transac

Page 335

20 CHAPTER 1Document Objects Dim doc As New PCDDocObject If docnumber = "" Or versionid = "" Then MsgBox "Check I

Page 336 - %CONTENTS_MOVE_AFTER

380 CHAPTER 5%FT_SCORE%FT_MARKER_LIST %FT_TIMESTAMP %FT_VCC_LIST %FT_VCC_RULES %SCORE_GRAPHIC %SCORE_PERCENT

Page 337

DM API TOKENS 381%FT_SMART_DOCUMENT%FT_SMART_DOCUMENTThis token is used to convert the output stream into a MIME-encapsulated, aggregate HTML (MH

Page 338 - %CONTENTS_MOVE_DOWN

382 CHAPTER 5%FT_SMART_DOCUMENTRelated ItemsSee the PCDGetDoc object.See the AddSearchCriteria method.

Page 339

DM API TOKENS 383%FT_TIMESTAMP%FT_TIMESTAMPThis token is used when a full text search is performed. It returns the last time the object was modif

Page 340 - %CONTENTS_MOVE_TO_TOP

384 CHAPTER 5%FT_TIMESTAMP%FT_CONFIDENCE %FT_FORMAT %FT_MARKER_LIST %FT_SCORE %FT_VCC_LIST %FT_VCC_RULES %SCORE_GRAPHIC %SCORE_PERCENT

Page 341

DM API TOKENS 385%FT_VCC_LIST%FT_VCC_LISTThis token is used when a full-text search is performed. It highlights the search term in any documents

Page 342 - %CONTENTS_MOVE_UP

386 CHAPTER 5%FT_VCC_LIST%FT_TIMESTAMP %FT_VCC_RULES %SCORE_GRAPHIC %SCORE_PERCENT

Page 343

DM API TOKENS 387%FT_VCC_RULES%FT_VCC_RULESThis token is used when a full-text search is performed. It is used by the DM Viewer to determine how

Page 344 - %CONTENTS_REORDER_CONTENTS

388 CHAPTER 5%FT_VCC_RULES%FT_TIMESTAMP %FT_VCC_LIST %SCORE_GRAPHIC %SCORE_PERCENT

Page 345

DM API TOKENS 389%GET_ALL_RELATED%GET_ALL_RELATEDUse this token to get all items that relate to the search item, whether they are located in the

Page 346 - %CONTENTS_SRC_PARENT

THE DM ARCHITECTURE 21Document Objects txtStatus = doc.GetReturnProperty("STATUS") Set doc = Nothing If txtStatus = 0 Then

Page 347 - %CONTENTS_SRC_PARENT_LIBRARY

390 CHAPTER 5%GET_ALL_RELATED'Set the related token. pRelated.AddSearchCriteria("%GET_RELATED_ITEMS", _ "%GET_ALL_RELATED")

Page 348 - %CONTENTS_SRC_PARENT_VERSION

DM API TOKENS 391%GET_LOCAL_RELATED%GET_LOCAL_RELATEDUse this token to get all the documents related to the search item that are in the same libr

Page 349 - %CONTENTS_DST_PARENT

392 CHAPTER 5%GET_LOCAL_RELATEDpRelated.AddSearchCriteria("%GET_RELATED_ITEMS", _ "%GET_LOCAL_RELATED") Related ItemsSee the PCD

Page 350 - %CONTENTS_DST_PARENT_LIBRARY

DM API TOKENS 393%GET_RELATED_ITEMS%GET_RELATED_ITEMSThis token indicates that the search should return related items. SyntaxPCDSearch.AddSearchC

Page 351 - %CONTENTS_DST_PARENT_VERSION

394 CHAPTER 5%GET_RELATED_ITEMSSee the AddSearchCriteria method.See the following tokens:%GET_ALL_RELATED %GET_LOCAL_RELATED %GET_REMOTE_RELATED

Page 352 - %CONTENTS_PARENT

DM API TOKENS 395%GET_REMOTE_RELATED%GET_REMOTE_RELATEDThis token indicates that the search should only return related items that are located in

Page 353 - %CONTENTS_PARENT_VERSION

396 CHAPTER 5%GET_REMOTE_RELATED'Set the related token. pRelated.AddSearchCriteria("%GET_RELATED_ITEMS", _ "%GET_REMOTE_RELATED&

Page 354 - %CONTENTS_WHERE_USED

DM API TOKENS 397%HAS_SUBFOLDERS%HAS_SUBFOLDERSThis token is used if a folder has subfolders.SyntaxPCDPropertyLists.GetPropertyValue( _ “%HAS_SU

Page 355

398 CHAPTER 5%HAS_SUBFOLDERSWend Related ItemsSee the PCDPropertyLists object.See the GetPropertyValue method.

Page 356 - %COPYDOC

DM API TOKENS 399%HITLIST%HITLISTThis token is used with the %FORM_LIST_TYPE token to retrieve data items referenced on a HITLIST form.SyntaxPCDD

Page 357 - %COPYDOC_LIBRARY

22 CHAPTER 1Document Objects If (rec.ErrNumber <> 0) Then MsgBox "Fetch Doc Failure on Execute: " & _ rec.ErrNumb

Page 358 - %COPYDOC_VERSION

400 CHAPTER 5%HITLISTRelated ItemsSee the PCDDocObject object.See the SetProperty method.See the following tokens:%FORM_LIST_TYPE %PROFILE %SEARCH

Page 359

DM API TOKENS 401%ISTREAM_STATSTG_CBSIZE_LOWPART%ISTREAM_STATSTG_CBSIZE_LOWPARTThis token returns the size of a stream.SyntaxPCDGetStream.GetProp

Page 360

402 CHAPTER 5%LOCK%LOCKThis token is used in conjunction with the %STATUS token to lock a document. See %STATUS for further information.SyntaxPCDDocO

Page 361 - %DELETE_ALL

DM API TOKENS 403%LOCK_FOR_CHECKOUT%LOCK_FOR_CHECKOUTThis token is used in conjunction with the %STATUS token to lock and check out a document. S

Page 362 - %DELETE_EXPUNGE

404 CHAPTER 5%LOOKUP_ID%LOOKUP_IDThis token is used to set the ID of the hit-list form that controls the data that will be returned by the look-up op

Page 363 - %DELETE_OPTION

DM API TOKENS 405%LOOKUP_IDSee the SetProperty method.

Page 364

406 CHAPTER 5%MAKE_READ_ONLY%MAKE_READ_ONLYThis token is used in conjunction with the %STATUS token to set a document so it cannot be altered. See %S

Page 365 - %DELETE_PHYSICAL_FILES

DM API TOKENS 407%MAKE_READ_ONLY5 Set the %OBJECT_IDENTIFIER token equal to the document number of the item that is to be made read only.6 If wor

Page 366 - %DOCS_LIBRARY_NAME

408 CHAPTER 5%MAXDAYS%MAXDAYSIf there are many entries in the ACTIVITY table, a search for recently edited documents (RED) can return many records. T

Page 367

DM API TOKENS 409%NUM_COMPONENTS%NUM_COMPONENTSWhere the document is comprised of multiple files (for example, as is the case with some CAD/CAM e

Page 368 - %DOCUMENT_NUMBER

THE DM ARCHITECTURE 23Document Objects End If FetchFlag = True MsgBox "Exported document content to " _ & "designa

Page 369

410 CHAPTER 5%OBJECT_IDENTIFIER%OBJECT_IDENTIFIERThe %OBJECT_IDENTIFIER token is used to set the document ID number of a document or or to retrieve

Page 370 - %EFFECTIVE_RIGHTS

DM API TOKENS 411%OBJECT_IDENTIFIER 'Execute the search. pSearch.Execute() Related ItemsSee the following objects:PCDDocObject PCDSearchSee

Page 371

412 CHAPTER 5%OBJECT_TYPE_ID%OBJECT_TYPE_IDUse this token to specify the form that is to be used in the operation.SyntaxPCDDocObject.SetProperty(“%OB

Page 372 - %ELAPSED_TIME

DM API TOKENS 413%ORDER_BY%ORDER_BYThis token is used to specify the field on the form that controls the sort order.SyntaxPCDPropertyLists.SetPro

Page 373

414 CHAPTER 5%PCD_DELETEVERSION%PCD_DELETEVERSIONThis token is used with the %VERSION_DIRECTIVE token to delete the specified version of the current

Page 374 - %ENCAPSULATION_TYPE

DM API TOKENS 415%PCD_NEW_VERSION%PCD_NEW_VERSIONThis token is used with the %VERSION_DIRECTIVE token to create a new document version. See %VERS

Page 375

416 CHAPTER 5%PCD_NEWSUBVERSION%PCD_NEWSUBVERSIONThis token is used with the %VERSION_DIRECTIVE token to create a new document sub-version. See %VERS

Page 376 - %FILTER_DISABLED_ROWS

DM API TOKENS 417%PCD_PARM_HTML_RENDERING%PCD_PARM_HTML_RENDERINGA document can be rendered in HTML, RIFF or native format to the browser. To ren

Page 377 - %FOLDERITEM_LIBRARY_NAME

418 CHAPTER 5%PCD_PARM_HTML_RENDERINGIf (strHTMLEnabled = “Y”) Then MsgBox(“A license has been installed on this DM Server.”) Else MsgBox(“No license

Page 378

DM API TOKENS 419%PCD_PARM_LIB_SETTINGS%PCD_PARM_LIB_SETTINGSThis token retrieves DM Webtop library configuration parameters that are stored in t

Page 379 - %FORM_APPLICATION

24 CHAPTER 1Document Objects Set pclient = _ CreateObject("PCDClient.PCDSearch") pclient.SetDST DST pclient.AddSea

Page 380

420 CHAPTER 5%PCD_UPDATE_VERSION%PCD_UPDATE_VERSIONThis token is used with the %VERSION_DIRECTIVE token to update create a document version to reflec

Page 381 - %FORM_DEFAULT_PRIMARY

DM API TOKENS 421%PR_ACCESS_CONTROL%PR_ACCESS_CONTROLThis token identifies whether or not a user has authority to control the access of other use

Page 382

422 CHAPTER 5%PR_ACCESS_CONTROLpDocObject.SetProperty("%VERSION_ID", version) 'Get the requested information. pDocObject.Fetch() &ap

Page 383 - %FORM_LIST_TYPE

DM API TOKENS 423%PR_CONTENT_COPY%PR_CONTENT_COPYThis token identifies whether or not a user has authority to copy the contents of the current do

Page 384

424 CHAPTER 5%PR_CONTENT_COPY 'Check for errors. checkError(pDocObject, "ERROR_DOCPROFILEDSP_RIGHTS") 'Get the doc's effect

Page 385 - %FORM_NAME

DM API TOKENS 425%PR_CONTENT_DELETE%PR_CONTENT_DELETEThis token identifies whether or not a user has authority to delete the contents of the curr

Page 386

426 CHAPTER 5%PR_CONTENT_DELETE 'Check for errors. checkError(pDocObject, "ERROR_DOCPROFILEDSP_RIGHTS") 'Get the document's

Page 387 - %FORM_PROFILE_DEFAULTS

DM API TOKENS 427%PR_CONTENT_EDIT%PR_CONTENT_EDITThis token identifies whether or not a user has authority to edit the contents of the current do

Page 388

428 CHAPTER 5%PR_CONTENT_EDIT 'Check for errors. checkError(pDocObject, "ERROR_DOCPROFILEDSP_RIGHTS") 'Get the doc's effect

Page 389 - %FORM_TITLE

DM API TOKENS 429%PR_CONTENT_RETRIEVE%PR_CONTENT_RETRIEVEThis token identifies whether or not a user has authority to retrieve the content of the

Page 390

THE DM ARCHITECTURE 25Document Objects txtDefaultRights = Str(DefaultRights) pclient.ReleaseResults Set PDoc = _ Create

Page 391 - %FT_CHARACTER_SET

430 CHAPTER 5%PR_CONTENT_RETRIEVE 'Check for errors. checkError(pDocObject, "ERROR_DOCPROFILEDSP_RIGHTS") 'Get the user's e

Page 392

DM API TOKENS 431%PR_CONTENT_VIEW%PR_CONTENT_VIEWThis token identifies whether or not a user has authority to view the content of the current doc

Page 393 - %FT_CONFIDENCE

432 CHAPTER 5%PR_CONTENT_VIEW 'Check for errors. checkError(pDocObject, "ERROR_DOCPROFILEDSP_RIGHTS") 'Get the doc's effect

Page 394

DM API TOKENS 433%PR_EDIT%PR_EDITThis token identifies whether or not a user has authority to edit the current document.SyntaxPCDDocObject.HasRig

Page 395 - %FT_FORMAT

434 CHAPTER 5%PR_EDIT 'Check for errors. checkError(pDocObject, "ERROR_DOCPROFILEDSP_RIGHTS") 'Get the doc's effective righ

Page 396

DM API TOKENS 435%PR_VIEW%PR_VIEWThis token identifies whether or not a user has authority to view the profile of the current document. SyntaxPCD

Page 397 - %FT_MARKER_LIST

436 CHAPTER 5%PR_VIEW 'Check for errors. checkError(pDocObject, "ERROR_DOCPROFILEDSP_RIGHTS") 'Get the user's effective rig

Page 398

DM API TOKENS 437%PRIMARY_KEY%PRIMARY_KEYThis token allows the application to get the SYSTEM_ID column.SyntaxPCDSearch.AddSearchCriteria(“%PRIMAR

Page 399 - %FT_SCORE

438 CHAPTER 5%PROFILE%PROFILEThis token is used to return information about the default profile form for the user's primary group.SyntaxPCDDocOb

Page 400

DM API TOKENS 439%PROFILERelated ItemsSee the PCDDocObject object.See the SetProperty method.See the %FORM_LIST_TYPE token.

Page 401 - %FT_SMART_DOCUMENT

26 CHAPTER 1Document Objects GetTrusteesforProfile = True Exit Function End If ErrorHandler: MsgBox "Unhandled Error: "

Page 402

440 CHAPTER 5%PROPERTYNAME%PROPERTYNAMEThe Execute method that PCDLookup supports returns both data and metadata. The %PROPERTYNAME token is used to

Page 403 - %FT_TIMESTAMP

DM API TOKENS 441%PROPERTYNAMERelated ItemsSee the PCDLookup object.See the GetMetaPropertyValue method.See the following tokens:%DATA %PROPERTYT

Page 404

442 CHAPTER 5%PROPERTYTYPE%PROPERTYTYPEThe Execute method that PCDLookup supports returns both data and metadata. The %PROPERTYTYPE token is used to

Page 405 - %FT_VCC_LIST

DM API TOKENS 443%PROPERTYTYPESee the GetMetaPropertyValue method.See the following tokens:%DATA %PROPERTYNAME %TITLE %VISIBLE

Page 406

444 CHAPTER 5%PUBLISH_VERSION%PUBLISH_VERSIONUse this token to publish a document version.ReturnsThe %PUBLISH_VERSION token returns SUCCESS if the do

Page 407 - %FT_VCC_RULES

DM API TOKENS 445%PUBLISH_VERSION%PCD_DELETEVERSION %PCD_NEW_VERSION %PCD_NEWSUBVERSION %PCD_UPDATE_VERSION %REMOVE_READ_ONLY %UNPUBLISH_VERSION

Page 408

446 CHAPTER 5%QS_DELETE%QS_DELETEThis token identifies whether or not a user has authority to delete a Quick Search. SyntaxPCDDocObject.HasRight(“%QS

Page 409 - %GET_ALL_RELATED

DM API TOKENS 447%QS_DELETE 'Check for errors. checkError(pDocObject, "ERROR_DOCPROFILEDSP_RIGHTS") 'Get the user’s effectiv

Page 410

448 CHAPTER 5%QS_EDIT%QS_EDITThis token identifies whether or not a user has authority to edit the specified Quick Search. SyntaxPCDDocObject.HasRigh

Page 411 - %GET_LOCAL_RELATED

DM API TOKENS 449%QS_EDIT 'Check for errors. checkError(pDocObject, "ERROR_DOCPROFILEDSP_RIGHTS") 'Get the user's effec

Page 412

THE DM ARCHITECTURE 27Document Objects lngENum = PDoc.ErrNumber If lngENum <> 0 Then Dim strEDesc As String, strENum As String

Page 413 - %GET_RELATED_ITEMS

450 CHAPTER 5%QS_VIEW%QS_VIEWThis token identifies whether or not a user has authority to view the specified Quick Search. SyntaxPCDDocObject.HasRigh

Page 414

DM API TOKENS 451%QS_VIEW 'Check for errors. checkError(pDocObject, "ERROR_DOCPROFILEDSP_RIGHTS") 'Get the doc's effect

Page 415 - %GET_REMOTE_RELATED

452 CHAPTER 5%RECENTACTIVITYDATE%RECENTACTIVITYDATEThis token allows to sort the items returned by a search according to the time they were most rece

Page 416

DM API TOKENS 453%RECENTACTIVITYDATE'Show data for the retrieved documents. While (lngRow < lngRowCount) strDocName = pClient.GetReturnVa

Page 417 - %HAS_SUBFOLDERS

454 CHAPTER 5%RECENTACTIVITYTIME%RECENTACTIVITYTIMEThis token allows to sort the items returned by a search according to the time they were most rece

Page 418

DM API TOKENS 455%RELATED_REMOTE_LIBS%RELATED_REMOTE_LIBSThis token can be used to specify that a search for related documents should retrieve fr

Page 419 - %HITLIST

456 CHAPTER 5%REMOVE_READ_ONLY%REMOVE_READ_ONLYThis token is used in conjunction with the %STATUS and %VERSION_DIRECTIVE tokens to remove the read-on

Page 420

DM API TOKENS 457%REMOVE_READ_ONLY2 Set the object type (form name) to whatever value is appropriate.3 Set the DM security token (DST).4 Set the

Page 421

458 CHAPTER 5%REMOVE_READ_ONLYRemoveReadOnly Document TokenUse the RemoveReadOnly Document token to remove the read-only setting from a document. PH

Page 422

DM API TOKENS 459%RENDITION_TYPE%RENDITION_TYPEThis token is used to check whether the DM Server can deliver documents in BINDER mode.SyntaxPCDGe

Page 423 - %LOCK_FOR_CHECKOUT

28 CHAPTER 1Document Objects PDoc.Update 'Check for error. Dim lngENum As Long lngENum = PDoc.ErrNumber If lngENum <> 0 Then

Page 424 - %LOOKUP_ID

460 CHAPTER 5%RENDITION_TYPEpGetDoc.ReleaseResults Related ItemsSee the PCDGetDoc object.See the AddSearchCriteria method.

Page 425

DM API TOKENS 461%RIGHT8%RIGHT8This token identifies whether or not a user has authority to assign a document or record to a file. SyntaxPCDDocOb

Page 426 - %MAKE_READ_ONLY

462 CHAPTER 5%RIGHT8 'Check for errors. checkError(pDocObject, "ERROR_DOCPROFILEDSP_RIGHTS") 'Get the user's effective righ

Page 427

DM API TOKENS 463%RIGHT9%RIGHT9This token identifies whether or not a user has authority to assign a document or record to a file. SyntaxPCDDocOb

Page 428 - %MAXDAYS

464 CHAPTER 5%RIGHT9 'Check for errors. checkError(pDocObject, "ERROR_DOCPROFILEDSP_RIGHTS") 'Get the user's effective righ

Page 429 - %NUM_COMPONENTS

DM API TOKENS 465%SCORE_GRAPHIC%SCORE_GRAPHICThis token is used when a full text search is performed. It expresses the calculated relevance of ea

Page 430 - %OBJECT_IDENTIFIER

466 CHAPTER 5%SCORE_GRAPHIC%FT_SCORE %FT_TIMESTAMP %FT_VCC_LIST %FT_VCC_RULES %SCORE_PERCENT

Page 431

DM API TOKENS 467%SCORE_PERCENT%SCORE_PERCENTThis token is used when a full text search is performed. It expresses the relevance of the search cr

Page 432 - %OBJECT_TYPE_ID

468 CHAPTER 5%SCORE_PERCENT%FT_SCORE %FT_TIMESTAMP %FT_VCC_LIST %FT_VCC_RULES %SCORE_GRAPHIC

Page 433 - %ORDER_BY

DM API TOKENS 469%SEARCH%SEARCHThis token is used in conjunction with %FORM_LIST_TYPE to return all search forms available to the user.SyntaxPCDD

Page 434 - %PCD_DELETEVERSION

Chapter 2AN OVERVIEW OF THE DM API 29An Overview of the DM APIIn This ChapterThis chapter describes the overall structure of the DM API, includin

Page 435 - %PCD_NEW_VERSION

470 CHAPTER 5%SEARCHSee the %FORM_LIST_TYPE token.

Page 436 - %PCD_NEWSUBVERSION

DM API TOKENS 471%SECURITY%SECURITYThis token is used to retrieve the user’s access rights for the specified document(s). Each user may be grante

Page 437 - %PCD_PARM_HTML_RENDERING

472 CHAPTER 5%STATUS%STATUSThis token is used to change the status of a document. The document status can be set to one of the following:• Lock the d

Page 438

DM API TOKENS 473%STATUSpDocObject.SetProperty( “%OBJECT_IDENTIFIER”, strDocNum ) 'Set the status. pDocObject.SetProperty( "%STATUS&qu

Page 439 - %PCD_PARM_LIB_SETTINGS

474 CHAPTER 5%TARGET_LIBRARY%TARGET_LIBRARYThis token specifies the library to use for various actions (such as searching or creating documents).Synt

Page 440 - %PCD_UPDATE_VERSION

DM API TOKENS 475%TITLE%TITLEThe Execute method that PCDLookup supports returns both data and metadata about the object specified in the lookup o

Page 441 - %PR_ACCESS_CONTROL

476 CHAPTER 5%TITLERelated ItemsSee the PCDLookup object.See the GetMetaPropertyValue method.See the following tokens:%DATA %PROPERTYNAME %PROPERTYTY

Page 442

DM API TOKENS 477%TRUSTEE_ID%TRUSTEE_IDThe %TRUSTEE_ID token, together with the %TRUSTEE_RIGHTS and %TRUSTEE_TYPE tokens, allows trustee settings

Page 443 - %PR_CONTENT_COPY

478 CHAPTER 5%TRUSTEE_ID%TRUSTEE_TYPE

Page 444

DM API TOKENS 479%TRUSTEE_RIGHTS%TRUSTEE_RIGHTSThe %TRUSTEE_RIGHTS token, together with the %TRUSTEE_ID and %TRUSTEE_TYPE tokens, allows trustee

Page 445 - %PR_CONTENT_DELETE

vPCDNetworkInfo 69PCDPropertyList 83PCDPropertyLists 96 PCDPutDoc 97PCDPutStream 102PCDRecentDoc 103PCDSearch 105PCDSQL 107PCDTru

Page 446

30 CHAPTER 2The PCDClient ObjectThe PCDClient ObjectYour custom applications interact with the DM Server through a number of objects that are collect

Page 447 - %PR_CONTENT_EDIT

480 CHAPTER 5%TRUSTEE_RIGHTSSee the AddProperty method.See the following tokens:%TRUSTEE_ID %TRUSTEE_TYPE

Page 448

DM API TOKENS 481%TRUSTEE_TYPE%TRUSTEE_TYPEThe %TRUSTEE_TYPE token, together with the %TRUSTEE_ID and %TRUSTEE_RIGHTS tokens, allows trustee sett

Page 449 - %PR_CONTENT_RETRIEVE

482 CHAPTER 5%TRUSTEE_TYPERelated ItemsSee the PCDPropertyList object.See the AddProperty method.See the following tokens:%TRUSTEE_ID %TRUSTEE_RIGHTS

Page 450

DM API TOKENS 483%TRUSTEES_ADD%TRUSTEES_ADDUse this token to add new entities (people, groups, etc.) to the current trustee list.SyntaxPCDDocObje

Page 451 - %PR_CONTENT_VIEW

484 CHAPTER 5%TRUSTEES_ADD%TRUSTEES_REMOVE %TRUSTEES_SET %TRUSTEES_UPDATE

Page 452

DM API TOKENS 485%TRUSTEES_REMOVE%TRUSTEES_REMOVEUse this token to delete one or more trustees from the current list of trustees for the specifie

Page 453 - %PR_EDIT

486 CHAPTER 5%TRUSTEES_REMOVE%TRUSTEES_ADD %TRUSTEES_SET %TRUSTEES_UPDATE

Page 454

DM API TOKENS 487%TRUSTEES_SET%TRUSTEES_SETUse this token to set trustee information.SyntaxPCDDocObject.SetProperty(“%TRUSTEES_UPDATE”, _ “%TRUS

Page 455 - %PR_VIEW

488 CHAPTER 5%TRUSTEES_SET%TRUSTEES_UPDATE

Page 456

DM API TOKENS 489%TRUSTEES_UPDATE%TRUSTEES_UPDATEUse this token to set trustee information.SyntaxPCDDocObject.SetProperty(“%TRUSTEES_UPDATE”, _

Page 457 - %PRIMARY_KEY

AN OVERVIEW OF THE DM API 31Early and Late BindingPCDSQL PCDTrusteeList Early and Late BindingYou can create objects in the DM API using either e

Page 458 - %PROFILE

490 CHAPTER 5%TRUSTEES_UPDATE'Perform the update. pDocObject.Update Related ItemsSee the PCDDocObject object.See the SetProperty method.See the

Page 459

DM API TOKENS 491%UNLOCK%UNLOCKThis token is used in conjunction with the %STATUS token to unlock a document. See the “%STATUS” token on page 472

Page 460 - %PROPERTYNAME

492 CHAPTER 5%UNPUBLISH_VERSION%UNPUBLISH_VERSIONThis token is used with the %VERSION_DIRECTIVE token to reset a previously published document versio

Page 461

DM API TOKENS 493%UNPUBLISH_VERSION5 Set the %OBJECT_IDENTIFIER token equal to the document number of the document version that is have its publi

Page 462 - %PROPERTYTYPE

494 CHAPTER 5%USER_ID%USER_IDThis token is used to set the user ID property for various actions.SyntaxPCDDocObject.SetProperty(“%USER_ID”, _ “vntUser

Page 463

DM API TOKENS 495%VERIFY_ONLY%VERIFY_ONLYThis token allows you to verify that the attributes are correct for the document. This is used primarily

Page 464 - %PUBLISH_VERSION

496 CHAPTER 5%VERIFY_ONLYRelated ItemsSee the PCDDocObject object.See the SetProperty method.

Page 465

DM API TOKENS 497%VERSION_AUTHOR%VERSION_AUTHORThis token allows to specify the author of the document version.SyntaxPCDDocObject.SetProperty(“%V

Page 466 - %QS_DELETE

498 CHAPTER 5%VERSION_COMMENT%VERSION_COMMENTThis token allows you to specify the comment for the document version.SyntaxPCDDocObject.SetProperty(“%V

Page 467

DM API TOKENS 499%VERSION_COMMENTSee the SetProperty method.

Page 468 - %QS_EDIT

Methods and Properties Supported by DM API ObjectsEach of the DM API objects supports two or more methods or properties that perform the various tasks

Page 469

500 CHAPTER 5%VERSION_DIRECTIVE%VERSION_DIRECTIVEThis token indicates that any of several supported actions is to affect the specified document versi

Page 470 - %QS_VIEW

DM API TOKENS 501%VERSION_DIRECTIVEpDelObject.SetDST( strDST ) 'Set the version ID pDelObject.SetProperty( "%VERSION_ID", version

Page 471

502 CHAPTER 5%VERSION_ID%VERSION_IDThis token allows a specific version ID to be set for the document.SyntaxPCDDocObject.GetReturnProperty(“%VERSION_

Page 472 - %RECENTACTIVITYDATE

DM API TOKENS 503%VERSION_ID 'Execute the search. pVer.Execute Related ItemsSee the following objects:PCDDocObject PCDGetDoc PCDPutDocSee th

Page 473

504 CHAPTER 5%VERSION_LABEL%VERSION_LABELThis token is used to retrieve the preview content.SyntaxPCDGetDoc.AddSearchCriteria(“%VERSION_LABEL”, _ “P

Page 474 - %RECENTACTIVITYTIME

DM API TOKENS 505%VERSION_TO_INDEX%VERSION_TO_INDEXThis token indentifies a version identified in a search whose content is now to be retrieved.

Page 475 - %RELATED_REMOTE_LIBS

506 CHAPTER 5%VERSION_TYPIST%VERSION_TYPISTThis token is used to identify the typist for the specified document version.SyntaxPCDDocObject.SetPropert

Page 476 - %REMOVE_READ_ONLY

DM API TOKENS 507%VISIBLE%VISIBLEThe Execute method that PCDLookup supports returns both data and metadata. The %VISIBLE token returns a Boolean

Page 477

508 CHAPTER 5%VISIBLERelated ItemsSee the PCDLookup object.See the GetMetaPropertyValue method.See the following tokens:%DATA %PROPERTYNAME %PROPERTY

Page 478

AN OVERVIEW OF THE DM API 33Methods and Properties Supported by DM API ObjectsHasRight RevokeRight SetDST SetObjectType SetProperties SetProperty

Page 479 - %RENDITION_TYPE

34 CHAPTER 2Methods and Properties Supported by DM API ObjectsSetSearchCriteria SetSearchObject PCDGetFormAddSearchLib Execute GetPropertyValue SetDS

Page 480

AN OVERVIEW OF THE DM API 35Methods and Properties Supported by DM API ObjectsPCDLookupAddOrderByProperty AddSearchCriteria AddSearchLib AddUserF

Page 481

36 CHAPTER 2Methods and Properties Supported by DM API ObjectsUnitType UserName PCDNetworkInfoGetDomainList GetGroupList GetGroupMembers GetRowCount

Page 482

AN OVERVIEW OF THE DM API 37Methods and Properties Supported by DM API ObjectsGetCurrentPropertyValue NewEnum NextProperty NextRow SetChunkFactor

Page 483

38 CHAPTER 2Methods and Properties Supported by DM API ObjectsPCDRecentDocAddOrderByProperty AddReturnMetaProperty AddReturnProperty AddSearchCriteri

Page 484

AN OVERVIEW OF THE DM API 39Methods and Properties Supported by DM API ObjectsPCDSearchAddOrderByProperty AddReturnMetaProperty AddReturnProperty

Page 485 - %SCORE_GRAPHIC

viDeleteTrustee 163EndGetBlock 164ErrDescription 165ErrNumber 166Execute 167Fetch 169FetchTrustees 170GetAliasList 174GetAt 175GetCo

Page 486

40 CHAPTER 2Methods and Properties Supported by DM API ObjectsGetColumnName GetColumnValue GetDBVendor GetNextKey GetRowCount GetRowsAffected GetSQLE

Page 487 - %SCORE_PERCENT

AN OVERVIEW OF THE DM API 41Tokens Supported by DM API Methods and PropertiesTokens Supported by DM API Methods and PropertiesTokens are special

Page 488

42 CHAPTER 2Tokens Supported by DM API Methods and Properties

Page 489

Chapter 3DM API OBJECTS 43DM API ObjectsIn This ChapterThis chapter describes each of the DM objects, including their syntax, usage, and other re

Page 490 - 470 CHAPTER 5

44 CHAPTER 3PCDASPFileUploadPCDASPFileUploadUse this object only from scripts running inside Active Server Pages (ASP). This object is used to read f

Page 491 - %SECURITY

DM API OBJECTS 45PCDASPFileUploadPCDASPFileUpload is a helper class/interface/object that supports the tying of the POST of an ASP Multipart/Form

Page 492 - Parameters d

46 CHAPTER 3PCDASPFileUpload. . .Related ItemsSee the following methods:Execute IsEmpty OnEndPage OnStartPage See the following properties:ErrDes

Page 493

DM API OBJECTS 47PCDDocObjectPCDDocObjectThis object is one of the true workhorses of the DM API. Custom applications use it to manipulate Docume

Page 494 - %TARGET_LIBRARY

48 CHAPTER 3PCDDocObjectSetDST SetObjectType SetProperties SetProperty SetTrustee SetTrustees Update UpdateTrustees See the following properti

Page 495

DM API OBJECTS 49PCDEnumPropertyListsPCDEnumPropertyListsThis object allows you to iterate through collections of property lists. Most often used

Page 496

viiGetPropertyIndex 206GetPropertyValue 209GetPropertyValueByIndex 211GetReturnProperties 213GetReturnProperty 215GetRowCount 216GetR

Page 497 - %TRUSTEE_ID

50 CHAPTER 3PCDErrorPCDErrorThis object is a base object for all other PCDClient objects. It provides common properties that you access through the o

Page 498

DM API OBJECTS 51PCDGetDocPCDGetDocThis object is used to manage the retrieval of a set of physical files that comprise the components of one ver

Page 499 - %TRUSTEE_RIGHTS

52 CHAPTER 3PCDGetDoc7 After file retrieval is complete, release memory associated with your PCDGetDoc object.

Page 500

DM API OBJECTS 53PCDGetDocExampleThe following example shows you can use PCDGetDoc to retrieve the name of a file that contains a document in you

Page 501 - %TRUSTEE_TYPE

54 CHAPTER 3PCDGetDoc. .Related ItemsSee the following methods: See the following properties:ErrDescription ErrNumber AddSearchCriteria Execute G

Page 502

DM API OBJECTS 55PCDGetFormPCDGetFormUse this object to retrieve information contained in the FORMS table in the SQL database. It is presently us

Page 503 - %TRUSTEES_ADD

56 CHAPTER 3PCDGetLoginLibsPCDGetLoginLibs Use this object to get a list of available logon libraries from the DM Server. This is a list of the libra

Page 504

DM API OBJECTS 57PCDGetLoginLibsReDim strLibName(LNumOfLibs) For LCounter = 0 To LNumOfLibs strLibName(LCounter) = _ objGetLibs.GetAt(LCou

Page 505 - %TRUSTEES_REMOVE

58 CHAPTER 3PCDGetStreamPCDGetStreamUse this object to provide the user with a way to read the contents of a physical file. SyntaxPCDGetStream.method

Page 506

DM API OBJECTS 59PCDGetStreamlngCurCount = 0 lngTotCount = 0 'Set our library objDOC.SetProperty "%TARGET_LIBRARY", bstrLib &apo

Page 507 - %TRUSTEES_SET

viiiRead 254ReleaseResults 255Reset 256RevokeRight 257Seek 259SetChunkFactor 260SetComplete 262SetDST 263SetLibrary 265SetLookupId

Page 508

60 CHAPTER 3PCDGetStream lngTotCount = lngTotCount + lngCurCount bytInArray = objGetStream.Read(5120) lngCurCount = objGetStream.BytesRead Wend

Page 509 - %TRUSTEES_UPDATE

DM API OBJECTS 61PCDLoginPCDLoginUse this object to create or append validated network aliases to a document security token (DST)SyntaxPCDLogin.m

Page 510

62 CHAPTER 3PCDLookupPCDLookupPCDLookup allows you to execute a lookup of data stored in validated SQL columns, such as AUTHOR or DOCUMENTTYPE. You c

Page 511

DM API OBJECTS 63PCDLookupExampleThe following example demonstrates how you can use PCDLookup to create and process a Lookup search. It includes

Page 512 - %UNPUBLISH_VERSION

64 CHAPTER 3PCDLookup vbCr & "you selected in the Typist field?" strAns = MsgBox(strPrompt, vbYesNo, strTitle) intAns = CInt(s

Page 513

DM API OBJECTS 65PCDLookup 'Unsorted. This assures unsorted results, but 'it may not be required unless there were 'p

Page 514 - %USER_ID

66 CHAPTER 3PCDLookup lstResultSet.Clear 'Set pointer position to row 0 in the result set. 'NextRow will then increment it to the firs

Page 515 - %VERIFY_ONLY

DM API OBJECTS 67PCDLookup Loop Loop 'Cleanup... objPCDLookup.ReleaseResults Set objPCDLookup = Nothing Set objPCDPropList

Page 516

68 CHAPTER 3PCDNetAliasListPCDNetAliasListThe PCDNetAliasList object stores a list of network aliases. A network alias consists of the following:•a U

Page 517 - %VERSION_AUTHOR

DM API OBJECTS 69PCDNetworkInfoPCDNetworkInfoThe PCDNetworkInfo object supports the integration of DM with your network-based security. The metho

Page 518 - %VERSION_COMMENT

ixChapter 5 DM API Tokens%ADD_ATTACHMENT 302%ATTACHMENT_ID 303%CHECKIN_DATE 304%CHECKOUT_COMMENT 305%CONTENT 306%CONTENTS_AFTER_ITEM

Page 519

70 CHAPTER 3PCDNetworkInfoPublic sDST As String Private Sub cbDomain_Click() DomainForm.oNWInfo.SetDST (sDST) DomainForm.Show End Sub Private S

Page 520 - %VERSION_DIRECTIVE

DM API OBJECTS 71PCDNetworkInfo Public oNWInfo As New PCDNetworkInfo Private Sub cbCancel_Click() Unload DomainForm End Sub Private Sub

Page 521

72 CHAPTER 3PCDNetworkInfo nNumRows = oNWInfo.GetRowCount() End If If nNumRows = 0 Then MsgBox "You do not have access to Domain “

Page 522 - %VERSION_ID

DM API OBJECTS 73PCDNetworkInfo 'Pre-select the first item in the list. lstDomainUserList.ListIndex = 0 End If

Page 523

74 CHAPTER 3PCDNetworkInfo 'Pre-select the first item in the list. lstDomainUserList.ListIndex = 0 End If End Sub Public

Page 524 - %VERSION_LABEL

DM API OBJECTS 75PCDNetworkInfo IsMemberForm.sDomainName = "MyDomain" IsMemberForm.sGroupName = "MyGroup" IsMemberFor

Page 525 - %VERSION_TO_INDEX

76 CHAPTER 3PCDNetworkInfo If nResult = 0 Then nNumRows = oGroupInfo.GetRowCount() End If If nNumRows = 0 Then MsgBox "You do no

Page 526 - %VERSION_TYPIST

DM API OBJECTS 77PCDNetworkInfo End If End If cbGetMembers.Enabled = False End Sub Private Sub lstDomains_Click() sDomainName

Page 527 - %VISIBLE

78 CHAPTER 3PCDNetworkInfo End Sub Private Sub lstGroups_Click() sGroupName = lstGroups.Text cbGetMembers.Enabled = True End Sub Public oMem

Page 528

DM API OBJECTS 79PCDNetworkInfo Dim sMember As String Dim nNumRows As Long 'Retrieve the GroupMembers from the network nResult = o

Commentaires sur ces manuels

Pas de commentaire