Hotspots provide a simple mechanism for users to initiate an action when clicked. There are several types of hotspots:
Button— Performs an action when clicked. Button hotspots can be coded using formulas, LotusScript, JavaScript or a simple action.
Action— Performs an action when clicked. Action hotspots can be coded by using formulas, LotusScript, JavaScript, or a simple action.
Link— Opens another object when clicked. Covered in more detail later in this chapter.
Buttons and action hotspots vary only in appearance. Button hotspots display as buttons, whereas action hotspots appear as highlighted text. |
For the sake of brevity and because the basic functionality of all hotspots is the same, only button hotspots are covered here; they are probably the most commonly used. Follow these steps to add a button hotspot:
1. | |
2. | Position the cursor where the button should appear. |
3. | Choose Create, Hotspot, Button. |
4. | Enter a caption for the button in the Label field. |
5. | Optionally, define other button attributes such as size, background, test styles, etc. |
6. | In the Programmer pane, select the environment in which the button will be used (Client or Web) in the Run pull-down list. When selecting Client, the following options are available:
|
7. | Save and test form. |
To modify a hotspot, follow these steps:
1. | Open the form, subform, or page that contains the hotspot. |
2. | Locate and double-click the hotspot. |
3. | Optionally, modify the hotspot's attributes. |
4. | Optionally, re-program the hotspot's function. |
5. | Save and test the hotspot. |
The following is a list of common hotspot problems and their resolution:
3.138.137.127