Data, Data 339, Syntax – Kofax DM API User Manual

Page 359: Parameters example

Advertising
background image

DM API T

OKENS

339

%DATA

%DATA

The

Execute

method that

PCDLookup

supports returns both data and

metadata. The

%DATA

token is used to retrieve the data returned by the

lookup operation.

Syntax

PCDLookup.GetMetaPropertyValue(“%DATA”)

Parameters

Example

'Create the object.

pClient = CreateObject("PCDClient.PCDLookup")


'Set the DM security token.

pClient.SetDST(strDST)


'Set the form.

pClient.SetSearchObject("cyd_defprof")


'Set the lookup ID.

pClient.SetLookupId("DEPL_PACKAGES")


'Set the target property.

pClient.SetTargetProperty("PACKAGE_ID")


'Add search library.

pClient.AddSearchLib("CurrentLibrary")


'Execute the search.

pclient.Execute()


'Get the data.

strPkgID = pClient.GetMetaPropertyValue("%Data")


'Report the data in whatever way is required.

MsgBox(“The name of the Deployment Package Initialization file” _

& “ is: “ & strPkgID)

%DATA

The token identifier used to request the
data from a lookup retrieval.

Advertising