Autodesk 15606-011408-9300 Developer Guide - Page 109
Creating Report Scripts with ASP
UPC - 606121429548
View all Autodesk 15606-011408-9300 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 109 highlights
To solve this problem and to avoid 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 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 userspecified point I Invokes getpoint.cfm, passing the point coordinates as URL parameters I Refreshes the map after getpoint.cfm, showform.cfm, and insert.cfm have completed their work Creating Report Scripts with ASP ASP files are similar to ColdFusion templates: both are based on HTML, and both use a special extension to identify the file as one that requires special processing (extension .asp). Instead of tags, ASP files include scripts written in VBScript, a lightweight Visual Basic-like scripting language, or in JScript, the Microsoft version of JavaScript. While ColdFusion is designed specifically for Web-database connectivity, ASP is a more general development environment. On one hand, this means you can do more with ASP than with ColdFusion. On the other hand, it takes longer to learn to do anything at all with ASP. Both products are excellent, but if you're a non-programmer, you'll probably be happier with ColdFusion. Much ASP functionality is provided by objects and components. Objects and components are ActiveX Control DLLs, similar to those you would use with Microsoft Visual Basic. Objects are always available to VBScript; you do not have to explicitly create them to use them in your code. Components exist outside of ASP and must be created with ASP in order to be used. ASP also provides access to several server events; the global.asp file lets you add code for how those events should be handled. Mostly, you will be working with the Server object, the Request object, and the Database Access component. To get a good idea of how ASP works, skim the descriptions below, and then look at the examples that follow. Tip For more information on ASP, refer to the Microsoft Internet Information Server online documentation and the Microsoft Web site (www.microsoft.com). ASP documentation is also available as part of the Microsoft Developer Network (MSDN) Library. Creating Report Scripts with ASP | 109