Form Controls

www.altova.com Expand/Collapse All Print this Topic Previous Page Up One Level Next page

Home >  SPS File: Content >

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 an explanation of how data is entered in the XML document for each device.

 

Data-Entry Device

Data in XML File

Input Field (Text Box)

Text entered by user

Multiline Input Field

Text entered by user

Combo box

User selection is mapped to a value.

Check box

User selection is mapped to a value.

Radio button

User selection is mapped to a value.

Button

User selection is mapped to a value.

 

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.

 

Input field (text box)
Multiline input field
Combo box
Check box
Radio button
Button

 

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.

 

 

 


© 2019 Altova GmbH