Difference between revisions of "Working with Forms"
Line 3: | Line 3: | ||
These objects are of three types: fields, submit buttons and containers. | These objects are of three types: fields, submit buttons and containers. | ||
*fields: | *fields: | ||
− | **'''[[input]]''' [[File:UI Object input.png]] | + | **'''[[input]]''' [[File:UI Object input.png|thumb|30px]] |
− | **'''[[time]]''' [[File:UI Object time.png]] | + | **'''[[time]]''' [[File:UI Object time.png|thumb|30px]] |
− | **'''[[date]]''' [[File:UI Object date.png]] | + | **'''[[date]]''' [[File:UI Object date.png|thumb|30px]] |
− | **'''[[keypad]]''' [[File:UI Object keypad.png]] | + | **'''[[keypad]]''' [[File:UI Object keypad.png|thumb|30px]] |
− | **'''[[checkbox]]''' [[File:UI Object checkbox.png]] | + | **'''[[checkbox]]''' [[File:UI Object checkbox.png|thumb|30px]] |
− | **'''[[radiobutton]]''' [[File:UI Object radiobutton.png]] | + | **'''[[radiobutton]]''' [[File:UI Object radiobutton.png|thumb|30px]] |
*fields (panel form) | *fields (panel form) | ||
**'''[[timepanel]]''' | **'''[[timepanel]]''' |
Revision as of 18:27, 25 February 2014
There are several objects that allow the creation of a form to send data to the server. These objects are of three types: fields, submit buttons and containers.
- fields:
- fields (panel form)
- submit buttons:
- container
Fields have all the same function, they appear as a
Keypad
Pressing the OK button or pressing the Enter key on the physical keyboard is equivalent to pressing the submit button of a form; HSYCO will call the method: userCommand(String name, String param) in the user.class class, passing: name - the id of the (keypad) object param - the numeric value entered via the keypad. The USER <id> event will be generated as well. If the (keypad!id) object's id starts with $, then the server will also automatically set a variable named $<id> to the appropriate value. The (keypad) object can also be used in forms, just like an (input) object. The (keypad) object has the identified version only.