FieldName

Descrizione

Restituisce il nome del campo allegato.

Questa è una proprietà di sola lettura; è possibile visualizzarla ma non impostarla. Il nome del campo viene impostato utilizzando Rational ClearQuest Designer, non l'API Rational ClearQuest.

Sintassi

VBScript

attachmentField.FieldName 

Perl

$attachmentField->GetFieldName(); 
Identificativo
Descrizione
attachmentField
Un oggetto AttachmentField che rappresenta un campo allegato di un record.
Valore di ritorno
Una stringa che contiene il nome del campo.

Esempio

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(); 

Feedback