beautypg.com

Recentactivitydate, Recentactivitydate 452, Syntax – Kofax DM API User Manual

Page 472: Parameters example

background image

452 C

HAPTER

5

%RECENTACTIVITYDATE

%RECENTACTIVITYDATE

This token allows to sort the items returned by a search according to the
time they were most recently modified.

Syntax

PCDRecentDoc.AddOrderByProperty( _

“%RECENTACTIVITYTIME”, _

blnTrueFalse)

Parameters

Example

'Create a recent doc object.

Set pClient = CreateObject("PCDClient.PCDRecentDoc.1")


'Identify the form to use.

pClient.SetSearchObject strFormName


'Identify what data is to be returned.

pClient.AddReturnProperty “DOCNAME”

pClient.AddReturnProperty “AUTHOR”


'Sort by modification date in ascending order.

pClient.AddOrderByProperty("%RECENTACTIVITYDATE", False)


'Execute the retrieval.

pClient.Execute


'Identify the number of items returned.

lngRowCount = pClient.GetRowsFound

%RECENTACTIVITYTIME

The token identifier that indicates that
the retrieved data should be sorted in
order by the time each was created.

blnTrueFalse

A Boolean value that indicates whether
the data should be sorted in ascending
or descending order. A False value
results in descending order. Anything
else (including no value) results in
ascending order.