EntityDef 오브젝트에 정의된 필드 이름을 리턴합니다.
필드의 목록은 특정 순서 없이 리턴됩니다. 찾고 있는 필드의 이름을 찾을 때까지 배열의 각 항목을 검사해야 합니다.
EntityDef 오브젝트의 다른 부분처럼, 관리자는 Rational® ClearQuest® Designer를 사용하여 정의된 필드를 설정합니다. API에서 직접 설정할 수 없습니다.
VBScript
entitydef.GetFieldDefNames
Perl
$entitydef->GetFieldDefNames();
VBScript
set sessionObj = GetSession
set entityDefObj = sessionObj.GetEntityDef(GetEntityDefName())
sessionObj.OutputDebugString "Field names for " &
entityDefObj.GetName()
' List the field names in the record
nameList = entityDefObj.GetFieldDefNames()
For Each fieldName in nameList
sessionObj.OutputDebugString fieldName
Next
Perl
$sessionObj = $entity->GetSession();
$entityDefObj = $sessionObj->GetEntityDef($entity->GetEntityDefName());
$sessionObj->OutputDebugString("Field names for "$entityDefObj->GetName());
$nameList = $entityDefObj->GetFieldDefNames();
foreach $fieldName (@$nameList)
{
$sessionObj->OutputDebugString($fieldName);
}