この時点で Entity オブジェクトを変更できる場合は、True を戻します。このメソッドを使用して、EditEntry アクションの結果が編集可能なレコードとなったかどうか、また、レコードを変更可能にする試行が失敗したかどうかを判別することができます。
Entity オブジェクトを編集するには、BuildEntity を使用して新規オブジェクトを作成するか、または既存のオブジェクトを開いて EditEntity で編集する必要があります。 Entity オブジェクトは、Commit メソッドで変更をコミットするか、または Revert メソッドで Entity オブジェクトを元に戻すまで、編集可能状態のままです。
VBScript
entity.IsEditable
Perl
$entity->IsEditable();
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.");
}