Returns the list of named hooks associated with records of this type.
This method returns the list of Named hooks. Named hooks (also referred to as record hooks in the Rational ClearQuest Designer user interface) are special functions used by Rational ClearQuest form controls to implement specific tasks.
VBScript
entitydef.GetHookDefNames field_def_name
Perl
$entitydef->GetHookDefNames(field_def_name);
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); }