Supprime tout changement apporté à l'objet Entity.
Use this method to exit the transaction that allowed the record to be edited. You should call this method if you tried to change a record and the Validate method returned an error string.
Vous pouvez uniquement appeler cette méthode si l'objet Entity est éditable. Pour rendre un objet Entity existant éditable, appelez la méthode EditEntity de l'objet Session. If you call this method on a newly created Entity object, one that was created with the BuildEntity method, this method cancels the submission of the record.
This method reverts the Entity's fields to the values that were stored in the database. After reverting, the Entity is no longer editable, so you must call the EditEntity method again to make new modifications.
VBScript
entity.Revert
Perl
$entity->Revert();
VBScript
Dim entityToEdit
set sessionObj = GetSession
set entityToEdit = sessionObj.GetEntity ("Defect", "SAMPL00000002")
sessionObj.EditEntity entityToEdit, "modify"
' ...make modifications to the entity object
' Revert the changes to the record
entityToEdit.Revert
Perl
# Get the current session
$sessionobj = $entity->GetSession();
# Select an entity to modify
$entityobj = $session->GetEntity("defect","BUGID00000042");
# Take the modify action on the entity object
$sessionobj->EditEntity($entityobj,"modify");
# ...make modifications to the entity object
# Revert the changes
$entityobj->Revert();
# At this point, the entity object is no longer modifiable