==============
on_before_post
==============

on_before_post(item)

**domain**: server

**language**: python

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

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

Occurs before an application posts a record to the item dataset.

The item parameter is the item that triggered the event.

Write an on_before_post event handler to take specific action immediately before 
an application posts a record in the item dataset. on_before_post is called 
by :doc:`post <m_post>` method.

See also
========

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