beautypg.com

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

Page 458: Parameters example

background image

438 C

HAPTER

5

%PROFILE

%PROFILE

This token is used to return information about the default profile form
for the user's primary group.

Syntax

PCDDocObject.SetProperty(“%FORM_LIST_TYPE”, _

“%PROFILE”)

Parameters

Example

'Create a doc object.

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


'Check for errors.

checkError(pDocObject, "ERROR_CREATESEARCH")


'Set the DM security token.

pDocObject.SetDST(strDST)


'Set the object type.

pDocObject.SetObjectType("DocsFormsList")


'Set the library.

pDocObject.SetProperty("%TARGET_LIBRARY", strLibName)


'Get the default profile form for the current group.

pDocObject.SetProperty("%FORM_LIST_TYPE", "%PROFILE")


'Retrieve the specified information.

pDocObject.Fetch()

%FORM_LIST_TYPE

The token that indicates the current
command line identifies the type of form
that the list operation is to retrieve.

%PROFILE

The token identifier that indicates
information about the default Profile
form is to be retrieved.