Title:
[ANeff] Bug for: preserveCaseForQueryColumn=true breaks CFAJAX query binding
| View in TrackerStatus/Resolution/Reason: Closed/Won't Fix/
Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)
Created: 08/11/2015
Components: Language, Serialization
Versions: 11.0
Failure Type:
Found In Build/Fixed In Build: CF11_Final /
Priority/Frequency: Major / Some users will encounter
Locale/System: ALL / Platforms All
Vote Count: 0
preserveCaseForQueryColumn=true breaks CFAJAX query binding
Steps to reproduce:
1) Run below code
2) See binding fails w/ error dialog: "Bind failed for select box mySelect, columns matching the value or display attributes specified on the cfselect tag are not present in the query [Enable debugging by adding 'cfdebug' to your URL parameters to see more information]"
3) Save HTML source as foo.html
4) In foo.html, change ColdFusion.Ajax.initSelect('mySelect','BARCOL','FOOCOL'); to ColdFusion.Ajax.initSelect('mySelect','barCol','fooCol');
5) Run foo.html and see binding works
Application.cfc
---------------
component {
THIS.name = "ticket_preserveCaseForQueryColumn_breaksCFAJAXQueryBinding";
THIS.serialization.preserveCaseForQueryColumn = true;
void function onRequest() {
cfsavecontent(variable="local.result") {
cfform() {
cfselect(name="mySelect", bind="cfc:myCFC.myFunction()", display="fooCol", value="barCol", bindOnLoad=true) {}
}
}
writeOutput(local.result);
}
}
index.cfm
---------
[empty file]
MyCFC.cfc
---------
component {
remote function myFunction() {
return queryNew("fooCol,barCol", "varchar,varchar", [['one','uno'],['two','dos']]);
}
}
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4034396
External Customer Info:
External Company:
External Customer Name: Aaron
External Customer Email:
Attachments:
Comments: