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
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
- A reference to an array of strings is returned.
Example
Perl
$sessionobj = $entity->GetSession();
$entitydefobj = $sessionobj->GetEntityDef($entity->GetEntityDefName());
$pathnames = $entitydefobj->GetLocalFieldPathNames(0);
foreach $name (@$pathnames)
{
$sessionobj->OutputDebugString("Path name: ".$name);
}