WebSpeed
Developer’s Guide
WebSpeed Source Files
All SpeedScript source provided with WebSpeed, including
web-disp.p
,web-util.p
, example Web objects, and other SpeedScript source files reside in directories under install-path/src/web
and install-path/src/web2
.The source files in
install-path/src/web
are described below:
- examples—Contains the source for Web object examples described in this manual, including HTML and offset files. It also contains additional examples of interest.
- method—Contains source for various SpeedScript compile-time include files (similar in function to C include files) that define some of the method procedures and API functions used by WebSpeed to construct Web objects.
- objects—Contains source for the main Web object dispatch procedure
web-disp.p
and the utility objectweb-util.p
.- support—Contains all of the tagmap utility procedures for HTML-mapping Web objects that are specified in
tagmap.dat
and that define the defaultweb.input
andweb.output
control handlers for supported HTML form element and SpeedScript field object types. It also contains some run-time procedures for debugging and interpreting the offset file for an HTML-mapping Web object.- template—Contains skeleton files used to create new Web objects and other types of support objects and files, including:
- The file that defines the New File links that use these templates in the AppBuilder Files component (
web.cst
)- Blank embedded SpeedScript file template (
script.html
)- Embedded SpeedScript template for creating a database browser (
browse.html
)- Embedded SpeedScript template for creating an application welcome page (
main.html
)- HTML frame set template (
frameset.html
)- Embedded SpeedScript template for generating a table of database fields that can be executed by another Web object (
table.html
)- SpeedScript procedure file template (
procedur.p
)- SpeedScript include file template (
include.i
)- CGI Wrapper template for creating a SpeedScript-generating Web object (
wrap-cgi.w
)- HTML-mapping template and include files (
html-map.w
andhmapmain.i
) for creating an HTML-mapping Web objectThe source files in install-path
/src/web2
are described below:
- Super Procedures—These are .i and .p files that contain the definitions of WebSpeed super procedures. To use super procedures you include the .i file in your 4GL code rather than running the .p file directly. Super procedures are in the install-path
/src/web2
directory.For more information about super procedures, see the Progress Programming Handbook.
- Templates—Code relating to WebSpeed Report, Detail, and HTML Mapping Wizards is in the install-path
/src/web2/templates
directory. These files can be used as models for creating custom templates that can be made accessible to the AppBuilder through a .cst file.There are two kinds of files in the template directory. First are the Progress template files (.w and .i files). These are used to create new objects that can be made available from the AppBuilder palette. More information on using Progress template files to extend AppBuilder can be found in the Progress AppBuilder Developer’s Guide.
The second type of file is the HTML template files (.dat files) for the report and detail wizards. These can be used as examples of how to create new wizards that create Embedded 4GL files (.html files). Each .dat file has a companion .w file with the same file name (for example,
wreport.w
andwreport.dat
) that acts as a SpeedScript wrapper for the .dat file.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |