makeformwebtemplate
TEMPLATE
The makeformwebtemplate statement converts a Panorama form into the equivalent HTML/CSS.
Parameters
This statement has one parameter:
template – dictionary that controls form rendering
Description
This statement converts a Panorama form into the equivalent HTML/CSS.
The dictionary contains options for controlling the form rendering and on exit will contain the resulting HTML/CSS code.
- HTML -> Result is placed here.
- BottomMargin -> Height of template in pixels.
- LeftMargin -> Left edge of template in pixels.
- SourceText -> If present, overall template for form page. Must contain
<style></style>
and <form></form>
. May also contain <title></title>
.
- SourceFile -> Path (opt) and name of template file. Only used if TEMPLATE is blank.
- AlternateFonts -> List of fonts (cr separated) with possible alternate fonts (comma separated). See alternate fonts in source code.
- Replacements -> List of text replacements.
- InputWidthFactor -> width (pixels) of a column for
<input>
tag, default is 7.25.
- TextAreaFactor -> width (pixels) of a column for
<textarea>
tag, default is 7.75.
- FormAction -> Url of action to take when form is submitted.
If action matches
?*
then /cgi-bin/Panorama.cgi
is added to beginning of action URL.
If action matches ~*
then /cgi-bin/Panorama.cgi?databasename
is added to begining of action URL.
- FormActionParameters -> any additional parameters in the action tag.
- FormTitle -> Form title (optional)
- FormPrefix -> HTML to be inserted immediately after the
<form>
tag
- FormSuffix -> HTML to be inserted immediately before the
</form>
tag
See Also
- deletewebtemplate -- deletes the web template (a dictionary) associated with a form (if any).
- getwebtemplate -- retrieves the web template (a dictionary) associated with a form (if any).
- getwebtemplate( -- retrieves the web template (a dictionary) associated with a form (if any).
- getwebtemplatetext -- retrieves the text of the web template (a dictionary) associated with a form (if any).
- getwebtemplatetext( -- retrieves the text of the web template (a dictionary) associated with a form (if any).
- grabwebformitems -- grabs multiple web form items and stuffs the values into fields and/or variables.
- listwebtemplates -- retrieves a list of web templates in the specified database, if any.
- listwebtemplates( -- retrieves a list of web templates in the specified database, if any.
- renderwebform -- renders a Panorama web form into HTML, merging data into the template as necessary.
- renderwebform( -- renders a Panorama web form into HTML, merging data into the template as necessary.
- retrywebform -- retries a web form that has missing or invalid data.
- savewebtemplate -- saves a web template (a dictionary) associated with a form.
- sethiddenwebformitem -- adds a hidden field to a form on a web page.
- webdatabasetoform -- fills in an HTML form with database field values.
- webfontsubstitutes -- generates an array of standard font substitutions for web browsers.
- webformallitems( -- returns a list of POST parameters passed from a form to the web server as a carriage return separated list.
- webformerrors( -- returns a list of errors that have been collected with the WebFormItemCheck statement.
- webformhiddenitems( -- returns a list of the hidden items in the web form submitted to this web procedure.
- webformitembang -- sets the text generated by the webformitembang( function.
- webformitemnames -- returns a list of POST parameters passed from a form to the web server as a carriage return separated list.
- webformitemnames( -- returns a list of POST parameters passed from a form to the web server as a carriage return separated list.
- webformitems( -- returns a list of POST parameters passed from a form to the web server, including both visible and invisible items (but excluding the special items Panorama generates for its own internal use).
- webformmerge -- fills in an HTML form with database values (fields and variables).
- webformrecordid -- adds a RECORD_ID hidden field to the HTML of a web form.
- webformselection -- selects data based on input from a web form. The web form must have fields that match the database fields.
- webformtodatabase -- updates the current database with information from the web form that was just submitted.
- webformvisibleitems( -- returns a list of the visible items in the web form submitted to this web procedure.
- webmerge -- merges an external HTML template file with fields and variables from the current record.
- webthisrecordkey -- makes a key for use with the WebURLSelect statement to specify the current record.
History
10.2 | Updated | Carried over from Panorama 6.0, but with significant changes. |