==============
on_before_edit
==============

on_before_edit(item)

**domain**: server

**language**: python

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

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

Occurs before an application enables editing of the active record.

The item parameter is the item that triggered the event.

Write an on_before_edit event handler to take specific action immediately 
before an application enables editing of the active record in an item dataset. 
on_before_edit is called by :doc:`edit <m_edit>` method. If the event returns 
false, the edit is aborted. 

See also
========

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