GetActionDefNames

Description

Restituisce i nomi di azioni definiti nell'oggetto EntityDef.

L'elenco di azioni non viene restituito in un ordine specifico. È necessario esaminare ogni voce del vettore fino a quando non si individua il nome dell'azione desiderato.

Come per le altre parti di un oggetto EntityDef, l'amministratore imposta le azioni definite utilizzando Rational ClearQuest Designer. Tali campi non possono essere impostati direttamente dall'API.

Sintassi

VBScript

entitydef.GetActionDefNames 

Perl

$entitydef->GetActionDefNames(); 
Identificativo
Description
entitydef
Un oggetto EntityDef corrispondente ad un tipo di record in uno schema.
Valore di ritorno
Per Visual Basic, un valore Variant contenente un vettore i cui elementi sono stringhe. Ogni valore String denomina un'azione. Se l'oggetto EntityDef non contiene azioni, il valore di ritorno sarà un valore Variant vuoto.

Per Perl, un riferimento a un vettore di stringhe.

Esempi

VBScript

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

sessionObj.OutputDebugString "Action names for " & entityDefObj.GetName()

nameList = entityDefObj.GetActionDefNames()
For Each actionName in nameList
   sessionObj.OutputDebugString actionName
Next 

Perl

$sessionObj = $entity->GetSession();
$sessionObj->GetEntityDef($entity->GetEntityDefName());



$sessionObj->OutputDebugString("Action names for "$entityDefObj->GetName());



$nameList = $entityDefObj->GetActionDefNames();

foreach $actionName(@$nameList)
   {
 $sessionObj->OutputDebugString($actionName);

 } 


Feedback