Creating, Modifying, and Troubleshooting Hotspots

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.

  • Formula pop-up— Displays text by using a formula.

  • 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.

  • Text pop-up— Displays text when clicked.

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.
Open the form, subform, or page to which you want to add a button hotspot.

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:

  • Simple actions

  • Formula

  • LotusScript

  • JavaScript

  • Common JavaScript

When selecting Web, the following options are available:

  • JavaScript

  • Common JavaScript

7.
Save and test form.

Modifying Hotspots

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.

Troubleshooting Hotspots

The following is a list of common hotspot problems and their resolution:

  • Action appears/disappears when it should not— Check and verify the hide-when formula of the formula.

  • Hotspot does not perform as expected— Check and verify code.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.138.137.127