Working with SAP Business One SDK - User Interface API
The SAP Business One UI API provides a programmatic interface to SAP Business One through a set of fully functional user interface.
Over BeasScript it is possible to use the UI-API.
How to insert your custom functionality:
Open debug window (Level 1)
Open the SAP Form

In the debug window you can see all events triggered by SAP.
NOTE: Do not use windowevents. This only available for compatibility. Take the global function instead.
If you make a double-click on the globalfunction, the system opens a script window and here you can insert your code directly.
To add/change elements, use event form_clicked()
