Restituisce il valore True se l'oggetto Entity può essere modificato in questo momento. È possibile utilizzare questo metodo per determinare se un'azione EditEntry ha determinato la generazione di un record che può essere modificato o se il tentativo di rendere il record modificabile ha avuto esito negativo.
Per modificare un oggetto Entity, è necessario creare un nuovo oggetto utilizzando BuildEntity o aprire un oggetto esistente per eseguire la modifica con EditEntity. Un oggetto Entity resta modificabile fino a quando non viene eseguito il commit delle modifiche con il metodo Commit o fino a quando non viene ripristinato con il metodo Revert.
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.");
}