resultBlock.processRollback() resultBlock.initQuery() resultBlock.listEntry0 = str(searchBlock.searchEntry0)+'%' resultBlock.processQuery() if editBlock.getCurrentRecord().isInserted(): editBlock.commit() editBlock.jumpRecord(2) else: editBlock.commit() import hack hack.deleteCurrentRecord(editBlock) import hack hack.rollback(editBlock) import hack hack.confirmPageChanges(self, 'commitTrigger', editBlock) editBlock.processRollback() if resultBlock.getRecordCount() > 0 and not resultBlock.getCurrentRecord().isEmpty(): editBlock.initQuery() editBlock.idEntry = ("%s" % resultBlock.idREntry) editBlock.processQuery()