Document_number, Document_number 34, Syntax – Kofax DM API User Manual
Page 368: Parameters example, Related items

348 C
HAPTER
5
%DOCUMENT_NUMBER
%DOCUMENT_NUMBER
This token is used to specify the document number of the profiled item
that the application requires.
Syntax
PCDDocObject.SetProperty(“%DOCUMENT_NUMBER”, _
“strDocNum”)
Parameters
Example
'Create an object to use to send the contents of the document.
pPutDoc = CreateObject( "PCDClient.PCDPutDoc.1" )
'Check for errors.
checkError( pPutDoc, "ERROR_CREATEPUTDOC" )
'Set the DM security token.
pPutDoc.SetDST( strDST )
'Constrain the search to the library, document number,
'and version.
pPutDoc.AddSearchCriteria( "%TARGET_LIBRARY", library )
pPutDoc.AddSearchCriteria( "%DOCUMENT_NUMBER", docnum )
pPutDoc.AddSearchCriteria( "%VERSION_ID", version_id )
'Find the document.
pPutDoc.Execute()
'Check for errors.
checkError( pPutDoc, "ERROR_UPLOADACT_PUTDOC" )
Related Items
See the
PCDDocObject
object.
%DOCUMENT_NUMBER
The token identifier indicating that the
document number is identified in this
program statement.
strDocNum
The value
from the
DOCNUMBER
column of the
PROFILE table.