Startup Program - demobbw.bbx
This program is started by the demobbw.sh shell script. It loads the CGI environment with a CALL to "utcgi.wbb" and creates the data templates used by the other sample programs.
|
In the CUST$ data template, a list of keys and descriptions are referred to by the global string values $SLSPID and $SLSPNM. These lists are loaded here, and when other routines generate selection lists or displays of salesperson values, the ID's and names are used.
|
Now that the setup is complete, the program branches to the program specified in the CGI input value "pgm". If no pgm value is specified, or an invalid pgm is specified, the HTML document "demomenu.txt" is loaded and displayed. By using the text "{include filename}" and calling "utmeta.wbb", a disk-based document can be loaded.
|