-
22 Aug 2011 10:26 PM #1
Add Filter to json datastore yeilds : TypeError: 'undefined' is not an object
Add Filter to json datastore yeilds : TypeError: 'undefined' is not an object
Designer version tested:
- Designer 1.____ rev ____ - checkout about in Designer menu
- Mint Linux 10, 64bit
- Ext JS 4.x
- ext designer crashes after adding filter to json datastore, and attempting to reload data -- gives error "TypeError: 'undefined' is not an object"
Code:
<<insert working code to reproduce the report >>
Steps to reproduce the problem:- new project
- add view port, add view, add json datastore
- configure datastore to load a json file from localhost/data/mytest.json
- right click on the datastoer, load data
- then add a filter I added -> property : tiledata, value: 'Consonant'
- then extjs present the error, and askes to restart or exit.
- a subset of the dataset should have been loaded
- TypeError: 'undefined' is not an object
-
25 Oct 2011 6:06 PM #2
which version of Designer gave you this issue??
Perfection as a goal is a nice idea that can point one in a specific direction. However, since "perfection" is an ever changing (evolving?) and moving target, one must admit that perfection can never be obtained...
When in doubt, check the d4mn source code!
-
25 Oct 2011 7:54 PM #3
Version...
Version...
I can't remember exactly which build it was when I first saw this -- a couple of months ago now -- but I just duplicated it on 1.2.2 Build 48
I'm not sure if it is a bug.. or an error on my part.
-
27 Oct 2011 9:37 AM #4
dfletcher -
I just tried this and its working fine for me. How are you configuring the filters? I just put in a raw array configuration into the filters like so:
The store that I had then filtered by that particular property and value.Code:[{property: 'category', value: 'Food'}]Aaron Conran
@aconran
Sencha Architect Development Team
-
27 Oct 2011 9:37 AM #5
Fyi, we have intentions to improve some of the configurations like filters where its just a raw editor that is free form
Aaron Conran
@aconran
Sencha Architect Development Team
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote