I am not sure what you wish to add and where exactly (technical fields).
I did the following:
- I created new user package via File | New Package menu item (Expert mode must be enabled)
- I edited the entity form and added there new button and changed its name to myButton.
- In package explorer I located the new package, right clicked the Script folder, added there new script and renamed the script to FmPEREntityEdit (BTW: this is the name of Entity Properties form. The name must be set to this if we want to use events.)
- I created the following function:
var Log = System.CreateObject(“Log”);
This function writes entity name to Log.
Note: the name of the function is made of button name and event name. myButton and OnClick.
To access the entity name, just use Entity.Name.
For more information please read the Customization Sample topic in User Guide. For complete list of objects and properties please look at the Reference Guide. Both documents are accessible via Help menu.
If you need additional assistance, write us here or send us a messsage to firstname.lastname@example.org (you can write us email in Czech, if you like).