Autodesk 15606-011408-9008 User Guide - Page 41

Server-Side Applications, Reports

Page 41 highlights

Server-Side Applications Server-side applications run on the server (or host), creating or processing data and serving it to the client machine. A server-side application (also known as a server app) might be a counter that shows how many times a site has been visited, or it might be a database that builds and serves HTML pages dynamically. LiteView, used to display raster maps without a browser, is also an example of a server-side application. In Autodesk MapGuide, server-side applications are typically used to generate and serve reports or to allow a user to update map data on the server using a browser. Please note that these applications are typically a combination of client-side and server-side applications, but for the sake of simplicity, they are discussed here as server-side applications. Reports You can design customized reports for your map. A report is an HTML page generated by a script you create using a third-party tool like ColdFusion by Macromedia Corporation, or Microsoft Active Server Pages (ASP). Report scripts combine database queries and HTML tags to dynamically generate pages on the server. These pages are then sent to the browser as standard HTML. Because the design of the HTML page is specified as part of the report script, the author of the report controls the way the page displays in the browser. In an Autodesk MapGuide application, the report typically provides information about the selected map features or about a point the user specifies, depending on the settings the map author specified in the MWF. In some cases, database resources might be queried directly, bypassing the MWF completely. When a user views the report, Autodesk MapGuide Server sends the feature or point information to the report script, which extracts the appropriate content from a database and then displays an HTML page with the results in the Web browser. Examples of reports might be demographic data for the specified layers or the latitude/longitude coordinate of the specified point. For more extensive information about reports, refer to the Autodesk MapGuide Developer's Guide. Developing Applications with Autodesk MapGuide | 41

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204

Developing Applications with Autodesk MapGuide
|
41
Server-Side Applications
Server-side applications run on the server (or
host
), creating or processing
data and serving it to the client machine. A server-side application (also
known as a
server app
) might be a counter that shows how many times a site
has been visited, or it might be a database that builds and serves HTML pages
dynamically. LiteView, used to display raster maps without a browser, is also
an example of a server-side application.
In Autodesk MapGuide, server-side applications are typically used to
generate and serve reports or to allow a user to update map data on the server
using a browser. Please note that these applications are typically a combina-
tion of client-side and server-side applications, but for the sake of simplicity,
they are discussed here as server-side applications.
Reports
You can design customized
reports
for your map. A report is an HTML page
generated by a script you create using a third-party tool like ColdFusion by
Macromedia Corporation, or Microsoft Active Server Pages (ASP). Report
scripts combine database queries and HTML tags to dynamically generate
pages on the server. These pages are then sent to the browser as standard
HTML. Because the design of the HTML page is specified as part of the report
script, the author of the report controls the way the page displays in the
browser.
In an Autodesk MapGuide application, the report typically provides informa-
tion about the selected map features or about a point the user specifies,
depending on the settings the map author specified in the MWF. In some
cases, database resources might be queried directly, bypassing the MWF
completely. When a user views the report, Autodesk MapGuide Server sends
the feature or point information to the report script, which extracts the
appropriate content from a database and then displays an HTML page with
the results in the Web browser. Examples of reports might be demographic
data for the specified layers or the latitude/longitude coordinate of the spec-
ified point. For more extensive information about reports, refer to the
Autodesk MapGuide Developer
s Guide
.