GetLocalFieldPathNames

Descrizione

Restituisce i nomi del percorso dei campi locali.

Ogni stringa nel valore Variant restituito contiene il nome del percorso di un singolo campo. È possibile che si tratti di un "nome puntato" se proviene da un riferimento (ad esempio, owner.login_name).

Sintassi

VBScript

entitydef.GetLocalFieldPathNames visible_only 

Perl

$entitydef->GetLocalFieldPathNames(visible_only); 
Identificativo
Descrizione
entitydef
Un oggetto EntityDef corrispondente ad un tipo di record in uno schema.
visible_only
Un valore booleano, che se possiede il valore True limita l'elenco di campi restituiti a quelli visibili.
Valore di ritorno
Per Visual Basic, viene restituito un valore Variant contenente un elenco di stringhe. Per Perl, viene restituito un riferimento ad un array di stringhe.

Esempi

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);

 } 

Feedback