create form in a very simpe form
shtml=form=start
shtml=form=input=CardNumber=col_cardnumber
shtml=form=input=Name=col_name
shtml=form=input=Street=col_street
shtml=form=update=address_update
shtml=form=delete=address_delete=col_cardnumber
shtml=form=end
Create a Input-Form table-formatted
in this case with Variable col_name and col_street and Buttons Save and Delete
If User is clicking "Save" then the Request "address_update" from same Window is calling
If User is clicking "Delete" then the Request "address_update" with Variable "col_cardnumber" is calling
shtml=form=...
start=[parameter] |
Begin Form "F1" (with start the Table-Format) Optional Parameters name=<name> (standard = "fedit") example: form=start To create a unformated Forumular, then use "startunformated", example form=startunformated=myedit=POST
|
input=description=<value>=[selects] |
Insert a Inputfield with name "value" and the content from "value" example: shtml=form=input=Name=col_name |
input=property=value=<tab>... |
Insert a Inputfield. You can set all standard-HTML-Properties in CSV-Format. See next Table |
textarea=description=<value> |
Insert a textarea-Field You can use this simple-Format or CSV-Format shtml=form=textarea=myfield=col_myfield |
checkbox=description=<value> |
Create a checkbox-Input field shtml=form=checkbox=myfield=col_myfield |
date=description=<value> |
Create a Date-Field (input field from type "date" |
select=descr.=value=values |
Create a select-field select=Color=col_color=r=red,b=blue,g=green Create a Dropdown-Field with red,blue,green select=Item=col_item=select itemcode,itemname Create a Itemcode-List (slow performance) you can use the csv-format see input and next table |
update=<requestname> |
set the Request-Function-Name for Update |
delete=<requestname>=col.. |
set the Request-Function-Name for Delete and the Variables |
end [=Variablelist] |
set the End of Form and insert a submit-Button if you set the Variablelist, then beas insert this Variables as hidden Field. More see var2hiddeninput If Variable "form_delete" not empty, then a Delete-Button is inserted. |
endwithoutsubmit [=Variablelist] |
same as "end" but without a submit-Button |
cols=x |
set the standard-cols-Propertie for textarea |
rows=x |
set the standard-rows-Propertie for textarea |
size=x |
set the standard-size-Propertie for input-Fields |
Propertie for input (csv-Format)
description=text |
set the Description for this field |
variable=<value> |
name of Variable. If you not set the value, then beas use the content from this variable |
value |
the content for this input-field |
rows |
textarea - row |
cols |
textarea - col |
size |
inputfield - size |
maxlengh |
inputfield - maxlength |
type |
type of field: |
select=(sql-command) |
only select-typ: Execute SQL-Statement and use this as dropdown. Not good for big Lists! Return-Value: select value,display beas is translating the display-Result |
values=<value>=<display>,..
|
only select-typ: Create Dropdown-List beas is translating the display-entry values=Color=col_color=r=red,b=blue,g=green or options=Color=col_color=r=red,b=blue,g=green |
unformated |
Create Entry without format (example without Table-Format) |
format=... |
set the Signs for the formatting (Table-Attributes), comma-separated. Standard is <tr>,<td>,</td>,<td>,</td>,</tr> With this command you can set the Attributes example: 2 Date-Fields in one Table-Line shtml=form=input=type=date<tab>text=Datum<tab>variable=col_date<tab>id=date<tab>format=<tr>,<td>,</td>,<td>,</td>, shtml=form=input=type=date<tab>variable=col_date2<tab>id=date<tab>format=,,,<td>,</td></tr>
|
readonly |
set readonly-Attrib to 1 |
Example
shtml=form=start
setvar=col_check1=0
setvar=col_check2=true
shtml=form=checkbox=Check Off=col_check1
shtml=form=checkbox=Check On=col_check2
shtml=form=select=Artikel=col_item=select itemcode,itemcode from oitm order by itemcode
shtml=form=text=Text=col_text
// Pwd-Field
setvar=col_pwd=abc
shtml=form=password=Pwd-Field=col_pwd
// Field read only. You must work with CSV-Parameter-List
shtml=form=input=description=MyField<tab>variable=col_field<tab>readonly
shtml=form=end