DisplayNameHeader

説明

このフィールドの履歴アイテムの一意のキーを戻します。

これは読み取り専用のプロパティです。表示できますが設定できません。一意のキーは、Rational® ClearQuest® API ではなく、Rational ClearQuest Designer を使用して設定されます。

構文

VBScript

historyField.DisplayNameHeader 

Perl

$historyField->GetDisplayNameHeader(); 
識別子
説明
historyField
HistoryField オブジェクト。レコードの 1 つのフィールドを表します。
戻り値
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++;

 } 

フィードバック