tracker issue : CF-4198947

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

ColdFusion.Grid.getGridObject not returning object in cf11 update 12

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/Fixed

Reporter/Name(from Bugbase): Bill Clark / Bill Clark ()

Created: 06/28/2017

Components: AJAX, UI Components

Versions: 11.0

Failure Type: Incorrectly functioning

Found In Build/Fixed In Build: 11,0,12,302575 / 303273

Priority/Frequency: Normal / Most users will encounter

Locale/System: English / Windows 10 64 bit

Vote Count: 0

Listed in the version 2016.0.05.303689 Issues Fixed doc
Problem Description:CFGrid scripting options that worked under CF11 update 11 do not
work with CF11 Update 12. Specifically, ColdFusion.Grid.getGridObject does not now
return an object in initGrid for grids where it did under update 11.
Steps to Reproduce:
function initGrid(data,cellmd,record,row,col,store) {
enrollGrid = ColdFusion.Grid.getGridObject("enrollmentsGrid")?
alert(enrollGrid)?
}
Actual Result:
An alert popup with "undefined"
Expected Result:
An alert popup with a grid object

Attachments:

  1. June 28, 2017 00:00:00: enrollments.cfm

Comments:

Perhaps that this is bound to a CFC is playing a part? If I comment-out the following lines, the alert shows an object is returned: <!---<cfset args.pageSize = "25" /> <cfset args.bind = "cfc:appCFC.scheduling.getMyEnrollments({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cfgridsortdirection},'#getAuthUser()#')" />---> Here is the return from the CFC: {"TOTALROWCOUNT":1,"QUERY":{"COLUMNS":["ENROLL_ID","COURSE_ID","ENROLLMENTSTATUS","COURSEGROUP","DSPDATETIMESTART","DSPDATETIMEEND","LOCATION","INSTRUCTOR"],"DATA":[[15,54,"Canceled","Trng_Module : Training Module","2016/11/17 2:00PM","2016/11/17 4:00PM","Main Building, Conference Room","Ronnie Sacker"]]}}
Comment by Bill C.
543 | June 29, 2017 06:32:40 PM GMT
Hi Bill, Thanks for your input. I looked into.It's an Issue with ajaxOnLoad("initGrid") in Update 12 with cfm bound to cfc where you get An alert popup with "undefined" as compared to when you use a button for the same in cfgrid as below : <cfinput type="button" onClick="initGrid()" name="testbtn" value="Click">. Thanks, Manas
Comment by Manas M.
544 | June 30, 2017 02:19:46 PM GMT
So this breaks functionality in our application and we have a mandate from the Government to move the server to update 12 which is past due (we didn't get notified until this week and have requested an extension). I am in a fix here though so knowing when there might be a patch might drive my either replacing the grids that have icons for functionality or waiting.
Comment by Bill C.
545 | June 30, 2017 03:07:05 PM GMT
We are working on the fix and will share an update once the fix is available
Comment by Vamseekrishna N.
546 | July 03, 2017 03:34:13 AM GMT
Hi Bill, Can you follow the below steps and let us know if the fix works: 1. Place the hf1100-4198947.jar file at cfusion/lib /updates. 2. Replace the grid.js file at CFIDE/scripts/ajax/package/cfgrid.js with the one attached 3. Clear browser cache(if any) 4. Restart ColdFusion Thanks, Manas
Comment by Manas M.
547 | July 04, 2017 01:58:28 PM GMT
Manas, I am experiencing the same issue. Can you share the files with me as well.
Comment by Sridharan R.
548 | September 06, 2017 08:28:44 PM GMT