ColdFusion 8 cfgrid getURL troubles…
Here’s something interesting I found out today while trying to get some code working. What I had was a cfgrid control, and I wanted to be able to access a URL using the onChange method of the cfgrid (or, whenever the cfgrid was clicked, a URL would load based on what was clicked - in this case, a part number).
My code for the onChange method in the cfgrid tag:
onChange=”getURL(gridName.dataProvider[gridName.selectedIndex]['PART']);”
And in the cfgridcolumn tag, which defined the part value:
<cfgridcolumn name=”part” header=”Part Number”>
Anyone see anything interesting? When I defined the selectedIndex of PART, I left it capitalized… and apparently, ColdFusion decided that it wanted to be case-sensitive in this case (excuse the pun).
Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically to your feed reader.

Comments
No comments yet.
Leave a comment