
440 CHAPTER 5
%PROPERTYNAME
%PROPERTYNAME
The Execute method that PCDLookup supports returns both data and
metadata. The
%PROPERTYNAME token is used to retrieve the name of
the property as shown on the base form. Usually, this is the name of the
column in the SQL database.
Syntax
PCDLookup.GetMetaPropertyValue(“%PROPERTYNAME”)
Parameters
Example
'Create the object.
Set 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 the search library.
pClient.AddSearchLib(strLibName)
'Execute the search.
pclient.Execute()
'Get the name.
Set strPropName = pClient.GetMetaPropertyValue("%PROPERTYNAME")
%PROPERTYNAME The token identifier used to request the
name of the property.
Kommentare zu diesen Handbüchern