tracker issue : CF-3759630

select a category, or use search below
(searches all categories and all time range)
Title:

CFGRID with BIND to CFC failed for an incorrect JavaScript

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): andrea dal zovo / andrea dal zovo (argolnx)

Created: 05/13/2014

Components: AJAX

Versions: 11.0

Failure Type: Non Functioning

Found In Build/Fixed In Build: CF11_Final /

Priority/Frequency: Critical / All users will encounter

Locale/System: ALL / Linux CentOS 6.4

Vote Count: 7

Listed in the version 11.0.03.292480 Issues Fixed doc
Problem Description:

When you use a CFGRID binded to a CFC and you pass more than 2 parameters from a FORM, it fails for an incorrenct javascript 

Steps to Reproduce:
<cfscript>
args.name="maingrid";
args.format="html";
args.bindOnLoad="true";
args.bind="cfc:mycfc.getData({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cfgridsortdirection},{myName},{mySurname}";
args.stripe=true;
args.selectmode="select";
args.delete=true;
</cfscript>
<cfform action="test.cfm" id="xform" name="xform">
Name<cfinput type="text" name="myName" /> - Surname<cfinput type="text" name="mySurname">
<cfgrid attributecollection="#args#" pagesize="15" appendkey="no" autowidth="true" selectonload="false" striperowcolor="##C8D8E8">
<cfgridcolumn name="name" display="true" header="name" />
<cfgridcolumn name="surname" display="true" header="surname" />
</cfgrid>
</cfform>

Actual Result:

JavaScript error for
ColdFusion.Grid.GridBindelementMap['mainGrid'] = 'myName,myName,,value;'mySurname,mySurname,,value';....

If you bind only one variable you get a correct
ColdFusion.Grid.GridBindelementMap['mainGrid'] = 'myName,myName,,value';....

so it's a wrong use of '

Expected Result:

ColdFusion.Grid.GridBindelementMap['mainGrid'] = 'myName,myName,,value';'mySurname,mySurname,,value';....

Any Workarounds:

Use CF10

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3759630

Keywords:
FixTested


External Customer Info:
External Company:  
External Customer Name: argolnx
External Customer Email:  
External Test Config: My Hardware and Environment details:

CF11, update from CF10, linux Centos 6.5 64bit

Attachments:

Comments:

Hi! I will be glad to test it! Is it possible? How?
Comment by External U.
12167 | May 15, 2014 11:42:46 PM GMT
I got the same error using URL binding, i got this javascript code created: d.GridBindelementsMap['gridList'] = 'tagSites,tagSites,formContents,value;'idstatus,idstatus,formContents,value'; in wich an ' is added after the ; used as separator.
Vote by External U.
12180 | May 27, 2014 10:04:51 AM GMT
I also need the fix!
Comment by External U.
12168 | May 27, 2014 10:05:39 AM GMT
I need the fix also.
Comment by External U.
12169 | June 05, 2014 10:36:49 AM GMT
Any chance of getting access to this as a patch? It's a pretty big issue for my client right now.
Comment by External U.
12170 | June 09, 2014 01:22:10 AM GMT
Same error, missing a ' when concatenating bindings in the generated javascript. e.g. Map['FirstGrid'] = 'LEVEL,level,,value;'DEPTID,dept,,value';var _cf_gridDataMode... Doesn't close the ' before ;'DEPTID which causes a javascript error
Vote by External U.
12181 | June 17, 2014 04:49:02 AM GMT
Having same issue when deployed our apps to CF11, in addition to that I'm getting error on Ext.grid.RowSelectionModel.ovveride not defined, it is working on CF9 /* This function override will let us do * * ColdFusion.Grid.getGridObject("grid").getSelectionModel().getSelectedIndex(); * * **/ Ext.grid.RowSelectionModel.override ({ getSelectedIndex : function(){ return this.grid.store.indexOf( this.selections.itemAt(0) ); } });
Vote by External U.
12182 | June 19, 2014 10:20:41 AM GMT
Having same issue when deployed our apps to CF11, in addition to that I'm getting error on Ext.grid.RowSelectionModel.ovveride not defined, it is working on CF9 /* This function override will let us do * * ColdFusion.Grid.getGridObject("grid").getSelectionModel().getSelectedIndex(); * * **/ Ext.grid.RowSelectionModel.override ({ getSelectedIndex : function(){ return this.grid.store.indexOf( this.selections.itemAt(0) ); } });
Comment by External U.
12171 | June 19, 2014 10:20:56 AM GMT
Having the same issue on CF 11,0,0,289822, Win Server 2012 R2, 64-bit. CFIDE is mapped in CFAdmin as well as in IIS and is accessible. We're using CFGrid for the user management, hence we're not able to add, edit or remove users. I'm seeing this Issue has been fixed, however I cannot see any updates downloadable in our CFAdmin under "Server Update > Updates > Available Updates". Having http://www.adobe.com/go/coldfusion-updates set as the Update Site.
Vote by External U.
12183 | July 04, 2014 07:34:50 AM GMT
We have fixed the bug and the hotfix will be available in ColdFusion 11 Update 1. For users, who need the fix, prior to that, please send an email to cfinstal<AT>adobe<DOT>com.
Comment by Anit K.
12172 | July 08, 2014 10:18:30 AM GMT
This is preventing us from upgrading to CF 11. Please make it work as it previously did.
Vote by External U.
12184 | July 09, 2014 08:32:44 AM GMT
Today I Have sent request for ColdFusion 11 Update 1 to 'cfinstal@adobe.com' but did not receive any update yet, can anyone help me to get this update or any work around for this issue.
Comment by External U.
12173 | September 16, 2014 09:07:54 AM GMT
I am still seeing the same error on ColdFusion 11 Update 2, following installation of this update this morning. Please advise on how this can be fixed. Identical ColdFusion code functions perfectly on ColdFusion 9 and ColdFusion 10. We can not consider moving to ColdFusion 11 until this is working correctly. I've tried emailing cfinstal<AT>adobe<DOT>com, but it appears that this email address only accepts emails from predetermined email addresses.
Vote by External U.
12185 | October 15, 2014 07:02:32 AM GMT
The error still exists (or is reintroduced) in Coldfusion 11 Update 2. Before upgrading my app to CF11 i need this fixed.
Comment by External U.
12174 | October 31, 2014 08:37:43 AM GMT
This fix didn't make it in update 1. It would be there in the update 3.
Comment by Rupesh K.
12175 | October 31, 2014 09:00:35 AM GMT
Cannot get to CF11 until this bug is fixed. We have CF11, Update 2, and it is still present.
Vote by External U.
12186 | October 31, 2014 01:58:18 PM GMT
Hi Rupesh, Sometimes the "Fixed In Build" field is empty in tickets. Perhaps that causes confusion. Thanks!, -Aaron
Comment by External U.
12176 | November 01, 2014 05:06:19 AM GMT
I've verified this is fixed in CF11 Update 3. Thanks!, -Aaron
Comment by External U.
12177 | November 07, 2014 02:24:51 AM GMT
@Aaron: where did you get the CF11 Update 3? Cause I'm able to download onliny update 2 and I'm getting sick to wait... Simple bug posted on may; now it's november and is still present. That's not a support folks.
Comment by External U.
12178 | November 09, 2014 02:11:15 PM GMT
Hi argolnx, CF11 Update 3 is still in Public Beta (so not final yet, but available for our testing) and is a new Update Site URL (http://download.adobe.com/pub/adobe/coldfusion/PR/updates.xml). Here is Adobe's blog post: http://blogs.coldfusion.com/post.cfm/coldfusion-11-update-3-is-available-for-early-access Thanks!, -Aaron
Comment by External U.
12179 | November 09, 2014 02:51:00 PM GMT
I am seeing a similar bug in ColdFusion 2018 (2018.0.01.311402). Was there a a regression?
Comment by jules g.
30141 | January 23, 2019 11:59:22 PM GMT