FieldName

Descripción

Devuelve el nombre del campo del archivo de datos adjuntos.

Es una propiedad de sólo lectura; se puede visualizar, pero no se puede establecer. El nombre de campo se establece utilizando Rational ClearQuest, no la API de Rational ClearQuest.

Sintaxis

VBScript

attachmentField.FieldName 

Perl

$attachmentField->GetFieldName(); 
Identificador
Descripción
attachmentField
Un objeto AttachmentField que representa un campo de archivo de datos adjuntos de un registro.
Valor de retorno
Un valor String que contiene el nombre del campo.

Ejemplo

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

Comentarios