GetLocalFieldPathNames

Description

Returns the path names of local fields.

Each string in the returned Variant contains the path name of a single field. This might be a "dotted name" if it is from within a reference (for example, owner.login_name).

Syntax

VBScript


entitydef.GetLocalFieldPathNames visible_only 

Perl


$entitydef->GetLocalFieldPathNames(visible_only); 
Identifier
Description
entitydef
An EntityDef object corresponding to a record type in a schema.
visible_only
A Boolean, which if True restricts the list of returned fields to only those that are visible.
Return value
For Visual Basic, a Variant containing a list of strings is returned.For Perl, a reference to an array of strings is returned.

Examples

VBScript


set sessionObj  = GetSession
set entityDefObj = sessionObj.GetEntityDef(GetEntityDefName())

pathNames = entityDefObj.GetLocalFieldPathNames(False)
For Each name in pathNames
   sessionObj.OutputDebugString "Path name: " & name
Next 

Perl


$sessionobj = $entity->GetSession();



$entitydefobj = $sessionobj->GetEntityDef($entity->GetEntityDefName());



$pathnames = $entitydefobj->GetLocalFieldPathNames(0);



foreach $name (@$pathnames)
   {
 $sessionobj->OutputDebugString("Path name: ".$name);

 }