Skip to main content
MAHI
Known Participant
Sep 16, 2014 2:41 PM UTC
Answered

CFGRID with bind to CFC for an incorrect JAVAScript

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 is closed to new replies. Start a new post to keep the conversation going.
Piyush NayakCorrect answer
Inspiring
Sep 16, 2014 3:29 PM UTC

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.

3 replies

Piyush NayakCorrect answer
Inspiring
Sep 16, 2014 3:29 PM UTC

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.

Translate
MAHI
MAHIAuthor
Known Participant
Sep 17, 2014 5:13 AM UTC

Yah I got reply thnx.

Translate