Adobe 38043740 - ColdFusion Standard - Mac Development Manual page 737

Developing applications
Hide thumbs Also See for 38043740 - ColdFusion Standard - Mac:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Requesting and Presenting Information
2
Save the file as selectbox.cfm and view it in your browser.
Because the tag includes the
tag specifies Emp_ID, the primary key for the Employee table, Employee IDs (not first names) get passed in the
value
Form.Employee variable to the application page specified in the
You can use a query to create a two-level hierarchical list grouped by one of the query columns. For an example of this
use, see the example for the
cfselect
Building slider bar controls
You can use the
control in a
cfslider
including label text, label font name, size, boldface, italics, and color, and slider range, positioning, and behavior. Slider
bars are useful because they are highly visual and users can only enter valid values. The
in Flash format forms.
Create a slider control
Create a ColdFusion page with the following content:
1
<cfform name="Form1" action="submit.cfm">
<cfslider name="myslider"
bgcolor="cyan"
bold="Yes"
range="0,1000"
scale="100"
value="600"
fontsize="14"
label="Slider %value%"
height="60"
width="400">
</cfform>
Save the file as slider.cfm and view it in your browser.
2
To get the value of the slider in the action page, use the variable Form.slider_name; in this case, Form.myslider.
Creating data grids with the cfgrid tag
The
tag creates a
cfgrid
cfform
a
tag or from other sources of data. As with other
cfquery
formatting options, as well as the option of validating user selections with a JavaScript validation script.
You can also perform the following tasks with a
• Sort data in the grid alphanumerically.
• Update, insert, and delete data.
• Display images in the grid.
Note: Flash format grids support a subset of the features available in applet format grids. For details on features supported
in each format, see the
cfgrid
Users can sort the grid entries in ascending order by double-clicking any column header. Double-clicking again sorts
the grid in descending order. In applet format, you can also add sort buttons to the grid control.
When users select grid data and submit the form, ColdFusion passes the selection information as form variables to the
application page specified in the
attribute, the user can select multiple entries in the list box. Also, because the
multiple
entry in the CFML Reference.
tag to create a slider control and define a variety of characteristics,
cfform
grid control that resembles a spreadsheet table and can contain data populated from
tag:
cfgrid
tag in the CFML Reference.
attribute.
cfformaction
Last updated 1/20/2012
attribute.
cfformaction
cfslider
tags, the
tag offers a wide range of data
cfform
cfgrid
732
tag is not supported

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents