Autodesk 15606-011408-9300 Developer Guide - Page 87
The Request, Launching the Report
UPC - 606121429548
View all Autodesk 15606-011408-9300 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 87 highlights
The Request Autodesk MapGuide® Author will use the report settings defined in the Map Window Properties dialog box to construct the URL that is sent to the server. For example, after all of the settings are specified, the URL code might look like this: http://www.myserver.com/reports/ report.cfm&OBJ_TYPE=landuse&OBJ_KEYS='01235639','01235640','01235641' This URL code is a request to launch a ColdFusion template called report.cfm. The template file and the two parameters OBJ_TYPE and OBJ_KEYS are passed to the ColdFusion engine by the Web server. The parameters will serve as arguments or variables that can be used by the ColdFusion template file. Note By default, Autodesk MapGuide Author sends map feature key values to the URL as characters. However, if you specify another data type for the key column, Autodesk MapGuide will send the keys as that type instead. You set the key column type by selecting it from the Type list box on the Data Sources tab of the Map Layer Properties dialog box in Autodesk MapGuide Author. Launching the Report You can launch the View Reports dialog box from Autodesk MapGuide Viewer by right-clicking the map and choosing View ➤ Reports, or by clicking the Report button on the Autodesk MapGuide® Viewer toolbar. Both methods will display a dialog box that shows a list of available reports defined for the map. Using the Autodesk MapGuide Viewer API, you can also launch reports programmatically; you call the View Reports dialog box using viewReportsDlg and launch the report directly using viewReport. Note Autodesk MapGuide Viewer ActiveX Control cannot open reports whose names contain double quotation marks, such as "Server Report". Therefore, if you are developing for Autodesk MapGuide Viewer ActiveX Control, do not use double quotation marks in your report names. Autodesk MapGuide Viewer ActiveX Control can open reports whose names contain single quotation marks, such as 'Server Report'. Overview | 87