Form_application, Syntax, Parameters example – Kofax DM API User Manual
Page 379
DM API T
OKENS
359
%FORM_APPLICATION
%FORM_APPLICATION
When used with the
PCDPropertyList
object, this token retrieves
the application ID associated with the form. When used with the
PCDDocObject
object, this token can be used to set the application ID
that is associated with a form.
Syntax
PCDPropertyList.GetCurrentPropertyValue( _
“%FORM_APPLICATION”)
PCDDocObject.SetProperty(“%FORM_APPLICATION”, _
appID)
Parameters
Example
'Create a document 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("DocsForm")
'Set the destination library.
pDocObject.SetProperty("%TARGET_LIBRARY", "CurrentLibrary")
'Set the form name.
pDocObject.SetProperty("%FORM_NAME", frmName)
'Set the app ID for the form.
pDocObject.SetProperty("%FORM_APPLICATION", appID)
%FORM_APPLICATION
The token identifier that indicates the
application ID for the specified form
either is being set or retrieved.
appID
The application ID for this form.