FieldName

설명

첨부 필드의 이름을 리턴합니다.

이는 읽기 전용 특성입니다. 즉, 볼 수는 있지만 설정할 수는 없습니다. 필드 이름은 Rational® ClearQuest® API가 아닌 Rational ClearQuest Designer를 사용하여 설정됩니다.

구문

VBScript

attachmentField.FieldName 

Perl

$attachmentField->GetFieldName(); 
ID
설명
attachmentField
레코드 내의 단일 첨부 필드를 나타내는 AttachmentField 오브젝트.
Return value
필드의 이름이 포함된 문자열을 리턴합니다.

예제

VBScript

' This example assumes there is at least 1 attachment field 
' associated with the record.
set attachFields = entity.AttachmentFields 
set attachField1 = attachFields.Item(0)

name = attachField1.FieldName 

Perl

# This example assumes that there is at least 1 attachment

# field associated with the record. Otherwise, 
# GetAttachmentFields won't return anything interesting and an 
# error would be generated



# Get the collection of attachment fields

$attachfields = $entity->GetAttachmentFields();



# Get the first attachment field

$attachfield1 = $attachfields->Item(0);



# And retrieve the name of that field

$name = $attachfield1->GetFieldName(); 

피드백