================
on_before_cancel
================

on_before_cancel(item)

**domain**: server

**language**: python

**class** :doc:`Item class </refs/server/item_api>`

Description
===========

Occurs before an application cancels modifications made to the item dataset.

The **item** parameter is the item that triggered the event.

Write an on_before_cancel event handler to take specific action immediately before 
an application cancels modifications made to the item dataset.

See also
========

:doc:`Modifying datasets </programming/data/modifying_datasets>`
