Creating Report Scripts with ASP
|
133
Accessing Your Application with the Viewer API
Because the Incident Log application runs in a separate instance of the
browser, it does not have programmatic access to the map window. This
means the application cannot refresh the map automatically. (That’s why we
have a JavaScript
alert
box telling the user to reload the map manually.)
To solve this problem and to avoid having the need for the user to reload the
map manually, you can use the Autodesk MapGuide Viewer API to access the
Incident Log application. Instead of creating a report or custom menu item,
add a button or other interface element to the HTML page hosting the map
(or to a frame or child window with programmatic access to that page). The
button should invoke a JavaScript function that does the following:
■
Uses the
digitizePoint
method to get the coordinates of a user-speci-
fied point.
■
Invokes
getpoint.asp
, passing the point coordinates as URL parameters.
■
Refreshes the map after
getpoint.asp
,
showform.asp
, and
insert.asp
have
completed their work.
Содержание 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 ...