지정된 필드에 저장할 수 있는 데이터 유형을 식별합니다.
EntityDef 오브젝트는 Entity 오브젝트의 각 필드에 저장할 수 있는 데이터의 유형을 제어합니다. 필드에는 문자열, 숫자, 시간소인, 참조 등을 저장할 수 있습니다. (전체 목록은 FieldType 상수를 참조하십시오.)
API를 사용해서는 필드의 유형을 변경할 수 없습니다. 필드 유형은 EntityDef 오브젝트의 해당 정보를 사용하여 판별되며 Rational® ClearQuest® Designer를 사용하여 관리자가 설정해야 합니다.
GetFieldNames 메소드를 사용하여 field_name 매개변수에 대한 올바른 이름 목록을 확보할 수 있습니다.
VBScript
entity.GetFieldType(field_name)
Perl
$entity->GetFieldType(field_name);
VBScript
set sessionObj = GetSession ' Iterate through the fields and output ' the field name and type. fieldNameList = GetFieldNames For Each fieldName in fieldNameList fieldType = GetFieldType(fieldName) sessionObj.OutputDebugString "Field name: " & fieldName & _ ", type=" & fieldType Next
Perl
$sessionobj = $entity->GetSession(); # Iterate through the fields and output # the field name and type. $fieldnamelist = $entity->GetFieldNames(); foreach $fieldname (@$fieldnamelist) { $fieldtype = $entity->GetFieldType($fieldname); $sessionobj->OutputDebugString("Field name: ".$fieldname. ", type=".$fieldtype); }