Re: Bind to a CFINPUT from a CFGRID
As an aside: I see this time and time again and just don't get it. If you're going to bother to test that url.Parkname exists and isn't a zero length string then why aren't you trimming it when you check? On Fri, Jul 30, 2010 at 12:57 AM, Ria Ragam ragam0...@gmail.com wrote: gridExample.cfm cfquery name=GetParks datasource=cfdocexamples cachedwithin=#CreateTimeSpan(0, 6, 0, 0)# SELECT PARKNAME, REGION, STATE FROM Parks Where REGION = 'Southeast Region' ORDER BY ParkName, State /cfquery cfform name=GridForm action= cfgrid name=Brand_Grid selectmode=row selectonLoad=no BindOnLoad=no query=GetParks format='html' appendKey =yes cfgridcolumn name=PARKNAME header=PARKNAME headeralign=center headerbold=Yes cfgridcolumn name=REGION header=REGION headeralign=center headerbold=Yes /cfgrid /cfform cfdiv id=id_DivEditeSiteDetail bind=url:gridOutput.cfm?PARKNAME={GridForm:Brand_Grid.PARKNAME}/cfdiv gridOutput.cfm h3Echoing main page input:/h3 cfoutput cfif isdefined(url.PARKNAME) AND url.PARKNAME NEQ cfoutput table tr tdPark Name:/td tdinput value=#url.PARKNAME# name=ParkName type=Text/td/tr /table /cfoutput cfelse No input /cfif /cfoutput I can't seem to figure out how to bind a selected column value in a CFGRID to a text box later on the page. Any ideas? Thanks ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336006 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Bind to a CFINPUT from a CFGRID
I can't seem to figure out how to bind a selected column value in a CFGRID to a text box later on the page. Any ideas? Thanks ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335854 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Bind to a CFINPUT from a CFGRID
gridExample.cfm cfquery name=GetParks datasource=cfdocexamples cachedwithin=#CreateTimeSpan(0, 6, 0, 0)# SELECT PARKNAME, REGION, STATE FROM Parks Where REGION = 'Southeast Region' ORDER BY ParkName, State /cfquery cfform name=GridForm action= cfgrid name=Brand_Grid selectmode=row selectonLoad=no BindOnLoad=no query=GetParks format='html' appendKey =yes cfgridcolumn name=PARKNAME header=PARKNAME headeralign=center headerbold=Yes cfgridcolumn name=REGION header=REGION headeralign=center headerbold=Yes /cfgrid /cfform cfdiv id=id_DivEditeSiteDetail bind=url:gridOutput.cfm?PARKNAME={GridForm:Brand_Grid.PARKNAME}/cfdiv gridOutput.cfm h3Echoing main page input:/h3 cfoutput cfif isdefined(url.PARKNAME) AND url.PARKNAME NEQ cfoutput table tr tdPark Name:/td tdinput value=#url.PARKNAME# name=ParkName type=Text/td/tr /table /cfoutput cfelse No input /cfif /cfoutput I can't seem to figure out how to bind a selected column value in a CFGRID to a text box later on the page. Any ideas? Thanks ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335883 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm