Autodesk 15606-011408-9300 Developer Guide - Page 133
Accessing Your Application with the Viewer API, method to get the coordinates of a user-speci
UPC - 606121429548
View all Autodesk 15606-011408-9300 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 133 highlights
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: I Uses the digitizePoint method to get the coordinates of a user-speci- fied point. I Invokes getpoint.asp, passing the point coordinates as URL parameters. I Refreshes the map after getpoint.asp, showform.asp, and insert.asp have completed their work. Creating Report Scripts with ASP | 133