Form Controls
Nodes in the XML document can be created as data-entry devices (such as input fields and combo boxes). In the HTML output, the data-entry device is rendered as an object that is the same as that displayed in Design View, or a near-equivalent. Note that data-entry devices will not work in the HTML output.
General mechanism
Given below is a list of the data-entry devices available in StyleVision, together with (i) an explanation of how data is entered in the XML document for each device and (ii) how the data-entry devices will be output in plain text format.
Data-Entry Device | Data in XML File | Output to Plain Text Format |
Input Field (Text Box) | Text entered by user | Text entered by user |
Multiline Input Field | Text entered by user | Text entered by user |
Combo box | User selection is mapped to a value. | Selected value |
Check box | User selection is mapped to a value. | [] (unselected); [x] (selected) |
Radio button | User selection is mapped to a value. | () (unselected); (o) (selected) |
Button | User selection is mapped to a value. | Button text |
The text values entered in the input fields are entered directly into the XML document as XML content. For the other data-entry devices, the Authentic View user's selection is mapped to a value. StyleVision enables you to define the list of options the user will see and the XML value to which each option is mapped. Typically, you will define the options and their corresponding values in a dialog.
Given below is a list of the data-entry devices available in StyleVision.
Data-Entry Device | Output to Plain Text Format |
Input Field (Text Box) | Text entered by user |
Multiline Input Field | Text entered by user |
Combo box | Selected value |
Check box | [] (unselected); [x] (selected) |
Radio button | () (unselected); (o) (selected) |
Button | Button text |
General usage
To create a data-entry device, do the following:
1. | Drag a node from the Schema Tree window into Design View and drop it at the desired location. |
2. | From the context menu that appears, select the data-entry device you wish to create the node as. |
3. | For some data-entry devices, a dialog pops up. In these cases, enter the required information in the dialog, and click OK. |
To reopen and edit the properties of a data-entry device, select the data-entry device (not the node containing it), and edit its properties in the Properties sidebar.
Note:
•Data cannot be entered in data-entry devices in the HTML output. In the HTML output, data-entry devices are merely used as an alternative way of presenting content.
•Data-entry devices can also be created by changing the current component type of a node to a data-entry device. To do this right-click the node and select Change to.
•In the HTML output, the entry selected by the user is displayed in the output. Changing the value of a data-entry device in the HTML document does not change the text value in either the XML document or HTML document.