Elapsed_time, Elapsed_time 352, Syntax – Kofax DM API User Manual

Page 372: Parameters example

Advertising
background image

352 C

HAPTER

5

%ELAPSED_TIME

%ELAPSED_TIME

This token sets the

ELAPSED_TIME

column of the

ACTIVITYLOG

table

with the amount of time that the specified document was open for edit
or new version activity.

Syntax

PCDDocObject.SetProperty(“%ELAPSED_TIME”, _

iElapsedTime)

Parameters

Example

'Create the object.

pDocObject = CreateObject("PCDClient.PCDDocObject.1")


'Check for errors.

checkError( pDocObject, "ERROR_CREATEDOCOBJECT" )


'Set the login security information (DST).

pDocObject.SetDST( strDST )


'Use the cyd_defprof form file to set the object properties.

pDocObject.SetObjectType("cyd_defprof")


'Set the library.

pDocObject.SetProperty( "%TARGET_LIBRARY", library )


'Set the object number.

pDocObject.SetProperty( "%OBJECT_IDENTIFIER", docnum )


'Set the version number.

pDocObject.SetProperty( "%VERSION_ID", version_id )


'Lock the document for checkout.

%ELAPSED_TIME

The token identifier that indicates that
this command line contains the elapsed
time value.

iElapsedTime

The elapsed time (in seconds) that the
specified document was open for edit or
new version activity.

Advertising