Programming an object's properties and events
- Select the desired run-time platform and language, if available, from the Run menu.
- Select the object's property or event from the Objects tab.
- Type or paste code into the Script area.
Locating code within an object
To locate code within an object, click on the object in the Work pane. The pointer on the Objects tab jumps to the appropriate object. The code can be viewed by clicking the appropriate event. For example, to find code attached to a button, click the button in the Work pane, the Objects tab jumps to the button object place holder and displays the code attached to the click event. To find code attached to the onBlur event of a field, click the field in the Work pane, the Objects tab jumps to the field object place holder and displays the first coded event in the list. If the onBlur event is not the first coded event for the field object, you must click the onBlur event to display its code in the Script area.
Color-coding event icons
All events that contain code are color-coded for the appropriate run-time platforms. An event coded to run in the Notes client displays a green icon. An event coded to run on the Web displays as a yellow icon. An event coded for both platforms displays half green and half yellow with a red dividing line down the center.
Determining the programming language at a glance
Each programming language recognized in the Programmer's pane has an icon related to it. These icons appear to the left of the object or event on the Objects tab. The following table shows the relationship of each icon to its respective programming language.
Programming language |
Icon |
---|---|
Formula language |
|
JavaScript |
|
LotusScript |
|
Simple Action(s) |
|
System Command(s) |
|