DisplayNameHeader

설명

이 필드에 있는 히스토리 항목의 고유 키를 리턴합니다.

이는 읽기 전용 특성입니다. 즉, 볼 수는 있으나 설정할 수는 없습니다. 고유 키는 Rational® ClearQuest® API가 아니라 Rational ClearQuest Designer를 사용하여 설정됩니다.

구문

VBScript

historyField.DisplayNameHeader 

Perl

$historyField->GetDisplayNameHeader(); 
ID
설명
historyField
레코드의 한 필드를 나타내는 HistoryField 오브젝트입니다.
Return value
Visual Basic의 경우 요소가 문자열인 배열이 포함된 Variant 값이 리턴됩니다. 각 문자열에는 Histories 오브젝트의 필드의 콜렉션에 있는 해당 항목의 고유 키가 포함됩니다. Perl의 경우 문자열 배열에 대한 참조가 리턴됩니다.

예제

VBScript

' This example assumes there is at least 1 history field 

' associated with the record.

set sessionObj = GetSession 

set historyFields = entity.HistoryFields 

set historyField1 = historyFields.Item(0) 

keys = historyField1.DisplayNameHeader 

x = 0 

For Each key in keys 

     sessionObj.OutputDebugString "Displaying key number " & x & " - " & key 
& vbcrlf

     x = x + 1 

Next

Perl

# This example assumes that there is at least 1 history 

# field associated with the record. Otherwise, GetHistoryFields

# won't return anything interesting and an error would be generated

$session=$entity->GetSession();
# Get the collection of history fields

$historyfields = $entity->GetHistoryFields();



# Get the first history field

$historyfield1 = $historyfields->Item(0)



# Get the list of unique keys for identifying each history.

$keys = $historyfield1->GetDisplayNameHeader();



# Iterate through the list of keys and print the key value

$x = 0;

foreach $key (@$keys)

 {

 $session->OutputDebugString("Displaying key number".$x." - 

      ".$key);

 $x++;

 } 

피드백