IsEditable

설명

지금 Entity 오브젝트를 수정할 수 있는 경우 True를 리턴합니다.

Entity 오브젝트를 편집하려면 BuildEntity를 사용하여 새 오브젝트를 작성하거나 EditEntity를 사용하여 편집할 기존의 오브젝트를 열어야 합니다. Entity 오브젝트는 Commit 메소드를 사용하여 변경사항을 확약하거나 Revert 메소드를 사용하여 Entity 오브젝트를 되돌릴 때까지 편집 가능한 상태로 남아 있습니다.

구문

VBScript

entity.IsEditable 

Perl

$entity->IsEditable(); 
ID
설명
entity
사용자 데이터 레코드를 나타내는 Entity 오브젝트. 후크 내에서 구문에 이 부분을 생략할 경우, Entity 오브젝트가 현재 데이터 레코드에 해당한다고 가정합니다(VBScript에만 해당).
Return value
Entity가 현재 편집 가능한 경우에는 True, 편집 가능하지 않은 경우에는 False가 리턴됩니다.

예제

VBScript

set sessionObj = GetSession 

set entityToEdit = sessionObj.GetEntity("defect", "BUGID00000042")

sessionObj.EditEntity entityToEdit, "modify"

' Verify that the entity object was opened for editing. 
If Not entityToEdit.IsEditable Then 
   OutputDebugString "Error - the entity object could not be
       edited." 
End If 

Perl

$sessionObj = $entity->GetSession();



$entityToEdit = $sessionObj->GetEntity("defect", "BUGID00000042");

$sessionObj->EditEntity($entityToEdit, "modify");



# Verify that the entity object was opened for editing. 

if (!$entityToEdit->IsEditable())

 {

 $session->OutputDebugString("Error - the entity object could not be 
edited.");

 } 

피드백