PDA

View Full Version : [FIXED] rootProperty lost



CaCtus491
10 Aug 2016, 4:50 PM
After opening my SA3.5 project in 4.0.0.112, the rootProperty config property has been removed from all my JSON readers. I presume that this happened as part of the upgrade.

CaCtus491
10 Aug 2016, 4:52 PM
Ahh, I see, when trying to add it back, SA4 believes (incorrectly) that rootProperty should be a function rather than a string.

petr.vecera
11 Aug 2016, 12:44 AM
Hi

Thanks for the report. The rootProeprty (http://docs.sencha.com/extjs/6.0.2-classic/Ext.data.reader.Json.html#cfg-rootProperty) can be both string or function. The string is set as default. You can switch it in your config view.

Was your project in SA 3.5.1 and ExtJS 6.0 and you opened it in SA 4.0 ? No framework update involved right?

Anyway we will investigate.

54935

CaCtus491
11 Aug 2016, 1:24 AM
It is actually an ExtJS 5.1.2 project.

For me, I can't click the icon circled in the image to change it to type string.

54936

petr.vecera
11 Aug 2016, 2:05 AM
Thanks for the report! I have opened a bug in our bug tracker.

CaCtus491
11 Aug 2016, 3:01 AM
Just a little further information on this...

If I create a new blank ExtJS 6 Classic project, I can set rootProperty to either function or string.
If I create a new blank ExtJS 5.1 project, I can only set it to a function.
In the same new ExtJS 5.1 project I am able to set Ext.mixin.Observable 'bubbleEvents' to a string or an array, so it appears to be specific to rootProperty on Ext.data.reader.Reader.

CaCtus491
11 Aug 2016, 3:08 AM
In ths 5.1 project, if I use SA to add a function for rootProperty, it creates one but has no parameters. According to the docs, it should have a single parameter 'data'.

I did not check the behaviour for an ExtJS 6 Classic project.

petr.vecera
11 Aug 2016, 3:39 AM
Thank you for your additional information! Everything fixed. It will be in SA 4.0 GA.