tracker issue : CF-4205049

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

Requesting cfgrid using bind attribute generates error

| View in Tracker

Status/Resolution/Reason: Open//

Reporter/Name(from Bugbase): Shigeyoshi M. / ()

Created: 08/23/2019

Components: CFForm, HTML

Versions: 2018

Failure Type:

Found In Build/Fixed In Build: 2018.0.04.314546 /

Priority/Frequency: Normal /

Locale/System: / Win 2016

Vote Count: 0

Problem Description:
When requesting cfgrid using bind attribute, is generated on console on the browser.

Steps to Reproduce:
1. Create two files:

   <cfgrid format="html" name="grid1" bindOnLoad="true"
     <cfgridcolumn name="id" />
     <cfgridcolumn name="name" />
component {
   remote struct function m1(page,pageSize,gridsortcolumn,gridsortdirection) {
     qEmp = queryNew("id,name", "Varchar,Varchar", [["a", "name1"],
["b", "name2"], ["c", "name3"]]);
     return QueryConvertForGrid(qEmp, page, pageSize);

2. Request test.cfm

Actual Result:
Following error is displayed on [Browser console]:
"[E] Using the deprecated "root" configuration.
Use "rootProperty" instead."

Checking source returned to the browser as below, I noticed that root:'data' is being specified at the property which of Ext.create creating

var _cf_gridDataModel = Ext.create('',{ model :
'customcfajax',reader: {type: 'my-json',root: 'data',totalProperty:
+ window._cf_clientid + '&_cf_rc=' + ColdFusion.requestCounter++
remoteSort:true, sortInfo:true});

Expected Result:
This error probably occurs because ExtJS has been upgraded to on ColdFusion 2018 Update2 and higher. Even if this error occurs, it seems to be no problem with the process. But to solve the error, root should be rootProperty.

Any Workarounds: