Forms¶
- model.BuildDisplay(name, dd, edit, add, metadata)¶
- Parameters:
name (str) – The name of the display
dd (DynamicData) – The DynamicData object containing the data to display
edit (str) – Optional HTML for edit controls
add (str) – Optional HTML for add controls
metadata (DynamicData) – Optional metadata for controlling display formatting
- Returns:
HTML for a formatted display table
- Return type:
str
Builds an HTML display table for the provided DynamicData object.
- model.BuildDisplayRows(dd, metadata)¶
- Parameters:
dd (DynamicData) – The DynamicData object containing the data to display
metadata (DynamicData) – Optional metadata for controlling display formatting
- Returns:
HTML for the rows of a display table
- Return type:
str
Builds the HTML rows for a display table based on the provided DynamicData object.
- model.BuildForm(name, dd, buttons, metadata)¶
- Parameters:
name (str) – The name of the form
dd (DynamicData) – The DynamicData object containing the form data
buttons (str) – Optional HTML for form buttons
metadata (DynamicData) – Optional metadata for controlling form formatting
- Returns:
HTML for a formatted form
- Return type:
str
Builds an HTML form for the provided DynamicData object.
- model.BuildFormRows(dd, metadata)¶
- Parameters:
dd (DynamicData) – The DynamicData object containing the form data
metadata (DynamicData) – Optional metadata for controlling form formatting
- Returns:
HTML for the rows of a form
- Return type:
str
Builds the HTML rows for a form based on the provided DynamicData object.
- model.Form¶
- Return type:
string
Set this to the HTML you wish to display as a form on your page. It is loaded into your page by the
/PyScriptForm/YourScript
GET request URL.
- model.Header¶
- Return type:
string
Set this to the title of your page
- model.HttpMethod¶
- Returns:
Either ‘get’ or ‘post’
- Return type:
string
This readonly property let’s you determine action based on whether it is the initial page load (GET) or the AJAX call from your Javascript (POST)
- model.Script¶
- Return type:
string
Set this to the Javascript you want to run on your page. It is loaded into your page by the
/PyScriptForm/YourScript
GET request URL.
Latest Update |
3/28/2025 |