IsDuplicate

설명

Entity 오브젝트가 다른 Entity 오브젝트의 중복으로 표시되어 있는지 여부를 나타냅니다.

중복 오브젝트는 원래 오브젝트에 이루어진 변경사항을 반영합니다. Entity 오브젝트가 중복으로 표시되면 원본 오브젝트에 발생한 모든 변경사항은 중복에도 반영됩니다. IBM® Rational® ClearQuest®는 원본 오브젝트 및 해당 중복 사이의 링크를 유지보수하여 이러한 변경사항을 업데이트합니다.

중복으로 표시된 오브젝트를 수정하면 오류가 발생합니다. 대신 원본 오브젝트를 수정해야 합니다. 원본 오브젝트를 찾으려면 중복의 GetOriginal 메소드를 사용하십시오.

구문

VBScript

entity.IsDuplicate 

Perl

$entity->IsDuplicate(); 
ID
설명
entity
사용자 데이터 레코드를 나타내는 Entity 오브젝트입니다. 후크 내에서 구문에 이 부분을 생략할 경우, Entity 오브젝트가 현재 데이터 레코드에 해당한다고 가정합니다(VBScript에만 해당).
Return value
해당 Entity 오브젝트에 다른 Entity 오브젝트의 중복으로 표시되어 있는 경우에는 값이 True가고, 그렇지 않은 경우에는 값이 False인 부울입니다.

예제

VBScript

'Display a window indicating which record is
'the original of this record
If entity.IsDuplicate Then
   ' Get the ID of this record
   duplicateID = entity.GetDisplayName

   ' Get the ID of the original record
   set originalObj = entity.GetOriginal
   originalID = originalObj.GetDisplayName
   OutputDebugString "The parent of record " & duplicateID & _
            " is record " & originalID
End If 

Perl

# Display a window indicating which record is

# the original of this record



if ($entity->IsDuplicate)

 {

 # Get the ID of this record



 $duplicateID = $entity->GetDisplayName();



 # Get the ID of the original record

 $originalObj = $entity->GetOriginal();

 $originalID = $originalObj->GetDisplayName();

 $session->OutputDebugString("The parent of record
       ".$duplicateID. " is record ".$originalID);

 } 

피드백