Skip to main content
MAHI
Known Participant
September 16, 2014
Answered

CFGRID with bind to CFC for an incorrect JAVAScript

  • September 16, 2014
  • 1 reply
  • 697 views

Hi,

I am using CF11 with SQL server 2012 & IIS8.0 on windows server 2012.

When I am using a CFGRID bind to a CFC and passing 2 or more than 2 parameters from a FORM, it fails for an incorrect JavaScript.

Using the below code:

<cfgrid attributeCollection="#args#"

bind="cfc:MaintenanceMenuComponent.getLookUpData({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cfgridsortdirection},{appl},{search})"

       onchange="cfc:MaintenanceMenuComponent.editLookUpData({cfgridaction},{cfgridrow},{cfgridchanged})"

       onerror="errorHandler" bindOnLoad="true">

Getting Result:

JavaScript Error for:

SyntaxError: missing ; before statement

...id'] = 'applid,appl,,value;'search,search,,value';var _cf_gridDataModel = Ext.cr...

I have checked the Adobe blog and found that this type of bug (Bug ID# 3759630) is already reported and fixed in ColdFusion 11 Update 1 (Suggested by Anit Kumar Panda Ref: https://bugbase.adobe.com/index.cfm?event=bug&id=3759630).

I have sent update request to 'cfinstal@adobe.com' but did not receive any update from them yet.

As this update is still not available on Adobe site, can anyone send me that link of the update or let me know if there any workarounds.


Thanks in advance

This topic has been closed for replies.
Correct answer Piyush Nayak

MAHI,

The issue exists and is fixed. The fix would be made available in a future udpate. The error you are reporting seems different, though.

The bind attribute appears to have a typo. Shouldn't "{cfgridsortcolum n}" just be "{cfgridsortcolum}", or is that intended?

The email address that you wrote to for the fix seems correct. Can you pls. resend the request.

1 reply

Piyush NayakCorrect answer
Inspiring
September 16, 2014

MAHI,

The issue exists and is fixed. The fix would be made available in a future udpate. The error you are reporting seems different, though.

The bind attribute appears to have a typo. Shouldn't "{cfgridsortcolum n}" just be "{cfgridsortcolum}", or is that intended?

The email address that you wrote to for the fix seems correct. Can you pls. resend the request.

MAHI
MAHIAuthor
Known Participant
September 17, 2014

Yah I got reply thnx.