Autodesk 15606-011408-9300 Developer Guide - Page 117
the Parcel Data ASP report, Autodesk MapGuide constructs a URL that, OBJ_KEYS, SQLQuery
UPC - 606121429548
View all Autodesk 15606-011408-9300 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 117 highlights
When a user selects one or more features from the Assessment layer and runs the Parcel Data (ASP) report, Autodesk MapGuide constructs a URL that invokes parcel_report.asp and tells it to generate a report on the selected features, which are identified by their OBJ_KEY values. If the user selected a single feature whose key was 941-0176-003-00, the URL would look like this: http://www.yourserver.com/asp/parcel_report.asp?OBJ_KEYS='9410176-003-00' If the user selected multiple features, the URL might look like this: http://www.yourserver.com/asp parcel_report.asp?OBJ_KEYS='941-0176-003-00','941-0176-006-00','941-0176-004-00' Note that OBJ_KEYS is represented as a standard URL parameter. To ASP, this parameter is no different from one submitted by an HTML form element. As we'll see in the next section, ASP processes it accordingly. Creating the Report Script Now let's create the ASP file that will process the Autodesk MapGuide report. The following code listing is for the parcel_report.asp file: ASP Report Data ASP Report Data Parcel Number: Owner: Year Built: Note that the VBScript code is almost identical to that in the first example ("Listing File Contents with ASP" on page 111). The only change is to the value we assign the SQLQuery variable. Creating Report Scripts with ASP | 117