Release 10.1A: OpenEdge Application Server:
Developing WebSpeed Applications

> ## Adding a template to AppBuilder

> The following shows the contents of `install-path``/src/template/web.cst`, which defines the entries in the AppBuilder New dialog box:

> web.cst
>     /* web.cst - WebSpeed 3.0 custom objects file */

>     *NEW-WEBOBJECT  HTML Mapping
>     NEW-TEMPLATE    src/web2/template/html-map.w

>     *NEW-WEBOBJECT  Report
>     NEW-TEMPLATE    src/web2/template/wreport.w

>     *NEW-WEBOBJECT  Detail
>     NEW-TEMPLATE    src/web2/template/wdetail.w

>     *NEW-WEBOBJECT  Blank
>     NEW-TEMPLATE    src/web/template/script.html

>     *NEW-WEBOBJECT  CGI Wrapper
>     NEW-TEMPLATE    src/web2/template/wrap-cgi.w

>     *NEW-WEBOBJECT  Frameset
>     NEW-TEMPLATE    src/web/template/frameset.html

>     *NEW-WEBOBJECT  Main
>     NEW-TEMPLATE    src/web/template/main.html

>     *NEW-WEBOBJECT  Report Template
>     NEW-TEMPLATE    src/web/template/browse.html

>     *NEW-WEBOBJECT  Table
>     NEW-TEMPLATE    src/web/template/table.html

> If you created a new, customized template, you could add the template to your menu by adding a label and a pathname to the `web.cst` file.

> Note: Generally you would use one of the templates referenced in `web.cst` as the basis for a new template. However, be aware that embedded SpeedScript templates require an additional `.dat` file. For example, `wreport.w` references a file named `brwstmpl.dat`. Within `brwstmpl.dat` there are specifications for input fields in the wizard. These specifications are surrounded by double pound signs (`##`). For more information on how to customize the AppBuilder, see the Progress AppBuilder Developer’s Guide.

Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095