Autodesk 15606-011408-9300 Developer Guide - Page 118
Creating an HTML to Display the Map, Parcel_Data, Request.Form, Request, OBJ_KEYS
UPC - 606121429548
View all Autodesk 15606-011408-9300 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 118 highlights
As with the previous example, the statement is selecting records from the Parcel_Data DSN. The difference is that the SQL statement now points to Request.Form, the ASP Request object's Form collection. The Request object is used by ASP to parse submitted data received from a client as part of a URL. Form is a collection representing the URL parameters, which can be accessed from the collection by name. In this case, the collection has only one member, the OBJ_KEYS parameter we specified in Autodesk MapGuide Author. The SQL statement is basically saying to select in Parcel_Data all records whose APN field matches OBJ_KEYS. In other words, select the records that correspond to the selected features on the map. If OBJ_KEYS contains multiple keys, ASP outputs the feature data associated with each key. Creating an HTML Page to Display the Map The last step is to create an HTML page to display our map. The following listing is for the parcel_map.htm file: ASP Example Querying and Displaying Data via the Map This example uses ASP to access an Autodesk MapGuide Report 118 | Chapter 6 Using Reports to Query and Update Data Sources