After tinkering for a while, I got it to do what I needed with this
attached to the data grid:

onChange="rangeGrid.dataProvider.editField(rangeGrid.selectedIndex,
'customerCode', '#getCustomer.customerCode#');" 

Happy coding all,



Chris Peterson
Gainey IT
Adobe Certified Advanced Coldfusion Developer
-----Original Message-----
From: Peterson, Chris 
Sent: Wednesday, July 18, 2007 9:31 AM
To: CF-Talk
Subject: Insert cfgrid record with default value in 1 column?

I have a cfgrid in a flash form, and am using the integrated insert
button.  When the user inserts a new record, I want something to run
that will set the default value of a column to a coldfusion variable in
the current page (I need #getCust.customerCode# to pre-fill the hidden
column customerCode)

Has anyone done this?  I hope cf8 has a default value for a
cfgridcolumn!



Chris Peterson
Gainey IT
Adobe Certified Advanced Coldfusion Developer

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283989
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