HtmlForm

Takes 6 parameters, Location, Mode, ActionLabel, ActionPath, Class, ActionMethod

Usage:

Location, Mode, ActionLabel, ActionPath, Class, ActionMethod
Location, Mode, ActionLabel, ActionPath, Class, ["post"]
Location, Mode, ActionLabel, ActionPath, [""], ["post"]
Location, ["Append"], ActionLabel, ActionPath, [""], ["post"]
["Runtime"], ["Append"], ActionLabel, ActionPath, [""], ["post"]
["Runtime"], ["Append"], ActionLabel, [""], [""], ["post"]
["Runtime"], ["Append"], ["Submit"], [""], [""], ["post"]

Description:

The current work query will be used to create an HTML Form for either display purposes or to allow the user to submit data back to the system for processing.

This command uses the Fields that end in #Label, #Note, #Attr to format and layout the Fields with the same name. Use the GetFieldDefs command to automatically create and populate these Fields using the Database definitions.

The Class parameter may specify an ID by having one of the space separated values start with a #. That name will be set as the ID for the form, instead of being used as a Class name.

If ActionLabel is set to "void", the submit button will not display.

Note that since this method is placing an HTML form, the Class parameter is applied to the form element not the button element. 

Example:

'Get the record from the database
LoadRecord    "MemTab.Person", "10101"

'Get the database definitions for #Label, #Note, and #Attr
GetFieldDefs

'Display the form
HtmlForm