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 Beas Script you've the possibility to use the UI-API
How to insert own functionality:
Open debug window (Level 1)
Open the SAP Form
in the debug window you can see all events triggered by SAP
NOTE: don't use windowevents. This only avaiable for compatibility. Please take global function
If you make a double click on the globalfunction, the system open a script window and here you can insert directly your code.
For add/change elements please use event form_clicked()