http://www.asfusion.com/blog

go there to learn all about binding and grids... it's good.... look at the
filter over items in a cfgrid.... 

that might help

-----Original Message-----
From: Edward Goodson-Wickes [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 11, 2006 3:16 PM
To: CF-Talk
Subject: Binding cfselect to cfgrid

What I am trying to do is bind a select list to a grid, and having problems 
looping over all of the items in the select list comparing them to the value

I want selected. For example if the db entry is "Call" then that is selected

in the cfselect.

I have a a cfgrid which is outputting the cfquery fine in the cfgrid for the

cfinputs but not the cfselect, and the cfselect doesn´t change when I select

a new record to display:
<cfquery name="getcompany" datasource="cfcodeexplorer">
select * from COMPANY
</cfquery>


The values are:
send fax, send email, call and email, call, send letter presentation, no, 
meeting

Following your link that you send me I get the following code for the 
cfselect but I don´t understand how to loop over the values with cfscript 
and don´t know what to do if the value is "null".

<cfselect name="NEXTSTEP" width="200" size="1" label="NEXT STEP" 
onchange="companyGrid.dataProvider.editField(company.selectedIndex, 
'NEXTSTEP', NEXTSTEP.selectedItem.data);">
<option value="SEND FAX">SEND FAX</OPTION>
<option value="SEND EMAIL">SEND EMAIL</OPTION>
<option value="CALL AND EMAIL">CALL AND EMAIL</OPTION>
<option value="CALL">CALL</OPTION>
<option value="SEND LETTER PRESENTATION">SEND LETTER</OPTION>
<option value="NO">NO</OPTION>
<option value="MEETING">MEETING</OPTION>
</cfselect>

Thank you very much for any pointers





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:256422
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to