beautypg.com

Primary_key, Primary_key 43, Syntax – Kofax DM API User Manual

Page 457: Parameters example, Related items

background image

DM API T

OKENS

437

%PRIMARY_KEY

%PRIMARY_KEY

This token allows the application to get the SYSTEM_ID column.

Syntax

PCDSearch.AddSearchCriteria(“%PRIMARY_KEY”, _

strDocID)

Parameters

Example

'Create a search object.

Set pDocNumber = CreateObject("PCDClient.PCDSearch.1")


'Check for errors.

checkError(pDocNumber, "ERROR_CREATESEARCH")


'Set the DM security token, the library, and the form to be used.

pDocNumber.SetDST(strDST)

pDocNumber.SetProperty(“%TARGET_LIBRARY”, strLibName)

pDocNumber.SetObjectType(“DEF_PROF”)


'Constrain the search to the specified docnumber.

pDocNumber.AddSearchCriteria("%PRIMARY_KEY", system_id)


'Execute the search.

pDocNumber.Execute

Related Items

See the PCDSearch Object.

See the AddSearchCriteria method.

%PRIMARY_KEY

The token identifier that indicates the
primary key is to be returned.

strDocID

The document ID number of the object
for which the system ID number is to be
returned.