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

on_before_cancel(item)

**domain**: client 

**language**: javascript

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

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

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

The ``item`` parameter is an 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>`
