GetHookDefNames

Descrizione

Restituisce l'elenco di hook denominati con record di questo tipo.

Questo metodo restituisce l'elenco di hook denominati. Gli hook denominati (noti anche come hook di record nell'interfaccia utente Rational ClearQuest Designer) sono funzioni speciali utilizzate dai controlli del modulo Rational ClearQuest per implementare attività specifiche.

Sintassi

VBScript

entitydef.GetHookDefNames field_def_name 

Perl

$entitydef->GetHookDefNames(field_def_name); 
Identificativo
Descrizione
entitydef
Un oggetto EntityDef corrispondente ad un tipo di record in uno schema.
Valore di ritorno
Per Visual Basic, un valore Variant contenente un elenco di stringhe. Ogni stringa corrisponde al nome di un hook associato a questo tipo di record. Se nessun hook denominato è associato a questo tipo di record, questo metodo restituisce una variante EMPTY. In Perl, un riferimento ad un array di stringhe.

Esempi

VBScript

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

sessionObj.OutputDebugString "Hooks of " & entityDefObj.GetName()

' List the record type's hooks
nameList = entityDefObj.GetHookDefNames()
For Each hookName in nameList
   sessionObj.OutputDebugString hookName
Next 

Perl

$sessionObj = $entity->GetSession();

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



$sessionObj->OutputDebugString("Hooks of
       ".$entityDefObj->GetName());



# List the record type's hooks

$nameList = $entityDefObj->GetHookDefNames();

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

 } 

Feedback