레코드를 편집할 수 있는 트랜잭션을 종료하려면 이 메소드를 사용하십시오. 레코드 변경 시 Validate 메소드에서 오류 문자열이 리턴된 경우에만 이 메소드를 호출해야 합니다.
Entity 오브젝트가 편집 가능한 경우에만 이 메소드를 호출할 수 있습니다. 기존의 Entity 오브젝트를 편집 가능하게 만들려면 Session 오브젝트의 EditEntity 메소드를 호출하십시오. BuildEntity 메소드를 사용하여 새로 작성된 Entity 오브젝트에서 이 메소드를 호출할 경우, 이 메소드는 레코드 제출을 취소합니다.
이 메소드는 Entity의 필드를 데이터베이스에 저장되어 있던 값으로 되돌립니다. 리돌린 후에는 Entity가 더 이상 편집 가능하지 않으므로 EditEntity 메소드를 다시 호출하여 내용을 다시 수정하십시오.
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