86
|
Chapter 6
Using Reports to Query and Update Data Sources
Overview
When creating a map, you can add
reports
to the map. Typically, a report is
an HTML page that displays information about the selected map features on
the layer. However, because the power behind the report is a report script
that you create using a third-party tool like ColdFusion, Active Server Pages
(ASP), Java, LiveWire™, or dbWeb™, the report can do much more than
display information—it can perform any number of tasks that you can code
into the script. For example, in this chapter you will see a sample application
that allows the user to click a point on the map and then updates the source
database with that point, so that any map layer that uses that database as its
data source will now display that point on the map. This chapter focuses on
these types of advanced applications performed by the report script.
How Reports Are Generated
The role of Autodesk MapGuide in generating reports is to construct a URL
dynamically and send it as an HTTP request to a Web server. This URL is
composed of a path to an application on the Web server along with a set of
parameters. The server, in turn, will process the request and send (or post
)
the results.
Autodesk MapGuide can generate two distinct types of requests by passing
unique parameters, along with the URL, to the server. The first type of URL
request passes key values of the selected map features. These key values are
the
keys
that are defined in the data source. The second type of URL request
passes a point feature and its location.
Specifying the Report Script
The report script contains the necessary code to connect to the appropriate
database, build the query, and display the results. For example, the script
might be a ColdFusion template file (CFM) or Active Server Page (ASP) that
resides on the Web server. The Reports tab in the Map Window Properties
dialog box in Autodesk MapGuide Author allows you to specify the report
script, as well as set other properties of the report. In the URL text box, you
specify the name and path of the script you want to use to pass the report
information to your reporting engine.
Содержание 15606-011408-9300 - MAP R6.3 UPG
Страница 1: ...15306 010000 5060 October 2001 Autodesk MapGuide Release 6 Developer s Guide ...
Страница 6: ...vi ...
Страница 16: ...16 ...
Страница 30: ...30 ...
Страница 84: ...84 ...
Страница 134: ...134 ...
Страница 202: ...202 ...