Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Touch Premium Member
    Join Date
    Dec 2009
    Posts
    3
    Vote Rating
    0
    dfletcher is on a distinguished road

      0  

    Default 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
    Operating System:
    • Mint Linux 10, 64bit
    Framework:
    • Ext JS 4.x
    Description:
    • ext designer crashes after adding filter to json datastore, and attempting to reload data -- gives error "TypeError: 'undefined' is not an object"
    Test Case:

    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.
    The result that was expected:
    • a subset of the dataset should have been loaded
    The result that occurs instead:
    • TypeError: 'undefined' is not an object

  2. #2
    Sencha Premium Member lorezyra's Avatar
    Join Date
    Dec 2007
    Location
    Japan -- 日本
    Posts
    636
    Vote Rating
    15
    lorezyra will become famous soon enough lorezyra will become famous soon enough

      0  

    Default


    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!
    ================================================
    And here are my terms...
    1. I don't care if you use my source code. (Known as "Code.")
    2. I don't care if I get any monetary compensation.
    3. I do care to receive credit for Code provided. So, please keep my name in the comments for Code provided.
    4. Code is provided without warranty "AS-IS" and I claim absolutely no warranty nor liability to the quality, security, and run-ability on any platform.
    5. By using Code, you accept all risk inherit with Code regardless if Code has known and yet to be discovered bugs.
    6. You are welcome to change and improve the Code to best meet your needs.
    7. I don't care if you use the Code in a commercial or open-source project.
    8. You are not required to contact me prior to using the Code.
    ================================================
    Simple. Enjoy.

  3. #3
    Touch Premium Member
    Join Date
    Dec 2009
    Posts
    3
    Vote Rating
    0
    dfletcher is on a distinguished road

      0  

    Default 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.

  4. #4
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,309
    Vote Rating
    125
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    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:
    Code:
    [{property: 'category', value: 'Food'}]
    The store that I had then filtered by that particular property and value.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  5. #5
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,309
    Vote Rating
    125
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    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