In the process for creating an ERP number (add2db), there is a new server-side callback that is executed before the ERP dialog is displayed. This allows you to check prerequisites, display a message instead of the dialog, or prompt the user for confirmation before opening the dialog. Data is not modified in this callback .[20]
The compiled
script in the erpcustom.cfg in the [SERVER_BEFORE_SHOWDIALOG] section. The
Function Execute(context) must return 1.
The context object and sample script are described in the issue.

![[Note]](https://webapi.partcommunity.com/service/help/latest/pages/en/partwarehouse/doc/images/note.png)