Using The Href Attribute - MACROMEDIA COLDFUSION 5 - CFML Reference

Cfml reference
Hide thumbs Also See for COLDFUSION 5 - CFML:
Table of Contents

Advertisement

126
<TD>#Val_Action#</TD>
<TD>#Val_Orig#</TD>
<TD>#Val_New#</TD>
</CFLOOP>

Using the href attribute

When specifying a URL with grid items using the
selectMode
single grid item or it extends to a grid column or row. When a user clicks on a linked
grid item, a
http://myserver.com?cfgridkey = selection
If the
The value of selection is determined by the value of the
When
the clicked column, beginning with the value of the first cell in the selected column.
Example
<!--- This example shows the cfgrid, cfgridcolumn, cfgridrow,
and cfgridupdate tags in action --->
<!--- use a query to show the useful qualities of cfgrid --->
<!--- If the gridEntered form field has been tripped,
perform the gridupdate on the table specified in the database.
Using the default value keyonly = yes allows us to change only
the information that differs from the previous grid --->
<cfif IsDefined("form.gridEntered") is True>
</cfif>
<!--- query the database to fill up the grid --->
<CFSET Val_Orig
<CFSET Val_New
<CFSET Val_Action = rray_Action[#LoopCount#]>
<CFOUTPUT>
<TR>
<TD>#LoopCount#</TD>
</TR>
</CFOUTPUT>
</CFLOOP>
</TABLE>
</CFIF>
</CFIF>
<CFELSE>
<CFOUTPUT>form.#GridName#.#ColName#:
</CFIF>
attribute determines whether the appended key value is limited to a
cfgridkey
attribute is set to No, then no grid values are appended to the URL.
appendKey
When
selectMode = "Single"
When
selectMode = "Row"
in the clicked row, beginning with the value of the first cell in the selected row.
selectMode = "Column"
<cfgridupdate grid = "FirstGrid" dataSource = "cfsnippets"
tableName = "CourseList" keyOnly = "Yes">
= Array_Orig[#LoopCount#]>
= Array_New[#LoopCount#]>
variable is appended to the URL in the following form:
, selection is the value of the column clicked.
, selection is a comma-separated list of column values
, selection is a comma-separated list of row values in
Chapter 2 ColdFusion Tags
NotSet!</cfoutput><BR>
attribute, the value of the
href
attribute:
selectMode

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION 5 - CFML and is the answer not in the manual?

This manual is also suitable for:

Coldfusion 5

Table of Contents