### Binding links to map areas

You can make the map areas linked with other reports, some URLs or emails according to your requirements.

#### Linking a map area to a URL/email

1. Select the node that represents the map area in the Map Area Inspector.
2. In the Properties panel, find the Link property and then click in the value cell.
   - To link the area to a URL, in the displayed dialog, select A URL from the Link to drop-down list, enter the link in the Hyperlink box, or click to select a field which contains URL information or create a formula to represent a URL to set the hyperlink, and then from the Target Frame drop-down list, specify where to load the linked target.
   - To link the area to an email, in the displayed dialog, select An Email from the Link to drop-down list, then compose the e-mail address with the text boxes as required.

     For example, a field "Company" contains company information such as "Jinfonet", you can input "sales" in the first text boxes, select "Company" from the drop-down list, and input ".com" in the second text box. With this, you can click the label (or any field value if you have bound the link to a field) in view mode or JReport Web so as to write an e-mail to the corresponding recipient. You can also type "sales@jinfonet.com" into the first text box and leave the drop-down list and the second text box empty, and thus clicking the label (or any field value) will write an e-mail to the specific address.

3. When done, click OK to accept the settings.

Then, when the map is viewed in HTML or DHTML report format, you can click the area to open the URL/email it is linked to, and when it is viewed in PDF format, you can click the label or summary field of this area to open the URL/email bound with the area.

#### Linking a map area to another report/detail report

Before you can link any map area to another report or to a detail report, you should make sure that the map is bound with a dataset.

To link a map area to another report:

1. Select the node that represents the map area in Map Area Inspector.
2. In the Properties panel, find the Link property and then click in the value cell.
3. In the Link Report dialog, specify the settings according to your requirement (for details, see Linking a report to another report).
4. When done, click OK to apply the changes.

Then, when the map is viewed in HTML or DHTML report format, you can click the area to open the linked report according to the specified link conditions, and when it is viewed in PDF format, you can click the label or summary field of this area to open the linked report.

To link a map area to a detail report:

1. Select the node that represents the map area in Map Area Inspector.
2. In the Properties panel, find the Detail Report property and then click in the value cell.
3. In the Master/Detail Report dialog, specify the settings according to your requirement (for details, see Linking a report to a detail report).
4. When done, click OK to apply the changes.

Then, when the map report is published to JReport Enterprise Server and run in JReport Web, you can click the area to open the detail report according to the specified link conditions.