Autodesk 15606-011408-9300 Developer Guide - Page 122
Adding a Button with the Viewer API, Report button that will display the report.
UPC - 606121429548
View all Autodesk 15606-011408-9300 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 122 highlights
Displaying the map and report in frames Adding a Button with the Viewer API An Autodesk MapGuide report is generated by right-clicking the map and then choosing View ➤ Reports from the popup menu. We'll create a Parcel Report button that will display the report. First we'll add the following tag to the parcel_map.htm file: function getMap() { if (navigator.appName == "Netscape") return parent.Left.document.map; else return parent.Left.window.map; } function runReport() { parent.Right.document.write("Select one or more parcels first."); getMap().viewReport('Parcel Data (ASP)'); } 122 | Chapter 6 Using Reports to Query and Update Data Sources
122
|
Chapter 6
Using Reports to Query and Update Data Sources
Displaying the map and report in frames
Adding a Button with the Viewer API
An Autodesk MapGuide report is generated by right-clicking the map and
then choosing View
➤
Reports from the popup menu. We
’
ll create a Parcel
Report button that will display the report.
First we
’
ll add the following
<SCRIPT>
tag to the
parcel_map.htm
file:
<SCRIPT>
function getMap()
{
if (navigator.appName == "Netscape")
return parent.Left.document.map;
else
return parent.Left.window.map;
}
function runReport()
{
parent.Right.document.write("<P>Select one or more parcels first.</P>");
getMap().viewReport('Parcel Data (ASP)');
}
</SCRIPT>