124
|
Chapter 6
Using Reports to Query and Update Data Sources
This the final text of
parcel_map.htm
, as well as the finished application:
The following illustration shows the results of the application if no map
features have been selected.
parcel_map.htm
<HTML>
<HEAD>
<TITLE>ASP Example</TITLE>
<!-- JavaScript functions -->
<SCRIPT>
// function #1
function getMap()
{
if (navigator.appName == "Netscape")
return parent.Left.document.map;
else
return parent.Left.window.map;
}
// function #2
function runReport()
{
parent.Right.document.write("<P>Select one or more parcels first.</P>");
getMap().viewReport('Parcel Data (ASP)');
}
</SCRIPT>
</HEAD>
<BODY>
<H1>Querying and Displaying Data via the Map</H1>
<P>This example uses <b>ASP</b> to access an Autodesk MapGuide
Report</P>
<!-- embedded map -->
<OBJECT ID="map" WIDTH=600 HEIGHT=250
CLASSID="CLSID:62789780-B744-11D0-986B-00609731A21D">
<PARAM NAME="URL"
VALUE="http://www.yourserver.com/maps/StarterApp.mwf?ReportTarget=
Right>
<EMBED
SRC="http://www.yourserver.com/maps/StarterApp.mwf?ReportTarget=Ri
ghtNAME="map" WIDTH=600 HEIGHT=250>
</OBJECT>
<!-- Parcel Report button -->
<FORM>
<INPUT TYPE="button" VALUE="Parcel Report" ONCLICK="runReport()"</INPUT>
</FORM>
</BODY>
</HTML>
Содержание 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 ...