Using The Href Attribute - MACROMEDIA COLDFUSION MX 61-CFML Reference

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

Advertisement

<table BORDER="yes">
<tr>
</tr>
<cfloop index="LoopCount" from="1" to=#size#>
<cfset Val_Action= Array_Action[#LoopCount#]>
<cfoutput>
<tr>
</tr>
</cfoutput>
</cfloop>
</table>
</cfif>
</cfif>
<cfelse>
<cfoutput>form.#GridName#.#ColName#: NotSet!</cfoutput><br>
</cfif>
</cfloop>

Using the href attribute

When specifying a URL with grid items using the
determines whether the appended key value is limited to one grid item or extends to a grid
column or row. When a user clicks a linked grid item, a
URL, in this form:
http://myserver.com?cfgridkey = selection
If the
appendKey
The value of selection is determined by the value of the
If
selectMode = "Single"
If
selectMode = "Row"
beginning with the value of the first cell in the row.
If
selectMode = "Column"
beginning with the value of the first cell in the column.
Clicking the submit button while editing a grid cell occasionally causes the cell changes to be lost.
To ensure that changes are submitted properly, Macromedia recommends that after user updates
data in a cell, they click another cell before submitting the form.
Example
<!--- This shows cfgrid, cfgridcolumn, cfgridrow, and cfgridupdate --->
<!--- use a query to show the useful qualities of cfgrid --->
<!--- If the gridEntered form field has been tripped, perform gridupdate
on table specified in database. Using default value keyonly = yes
lets us change only information that differs from previous grid --->
<cfif IsDefined("form.gridEntered") is True>
158
Chapter 2: ColdFusion Tags
<th>Loop Index</TH>
<th>Action</TH>
<th>Old Value</TH>
<th>New Value</TH>
<cfset Val_Orig= Array_Orig[#LoopCount#]>
<cfset Val_New = Array_New[#LoopCount#]>
<td>#LoopCount#</td>
<td>#Val_Action#</td>
<td>#Val_Orig#</td>
<td>#Val_New#</td>
attribute is set to No, no grid values are appended to the URL.
, selection is the value of the column clicked.
, selection is a delimited list of column values in the clicked row,
, selection is a delimited list of row values in the clicked column,
attribute, the
href
selectMode
variable is appended to the
cfgridkey
attribute:
selectMode
attribute value

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion mx

Table of Contents