Success! Looks like we've fixed this one. According to our records the fix was applied for DSGNR-1536 in a recent build.
  1. #1
    Sencha Premium Member
    Join Date
    Dec 2011
    Location
    London, UK
    Posts
    231
    Vote Rating
    6
    bseddon is on a distinguished road

      0  

    Default Unable to remove root definition from reader

    Unable to remove root definition from reader


    After adding a json reader to a store:

    Code:
    Ext.define('Photos.store.base.MyJsonReader', {    extend: 'Ext.data.reader.Json',
    
    
        constructor: function(cfg) {
            var me = this;
            cfg = cfg || {};
            me.callParent([Ext.apply({
                type: 'json',
                id: 'PhotosFoldersReader'
            }, cfg)]);
        }
    });
    I wanted to try changing the root. However it was not helpful but I am unable to remove the root. If I try by using the delete menu option or by clicking on the 'default' button or by removing the content I see an error message stating that 'this config value for root is mandatory'. Clearly that's not the case. The only solution is to remove the reader and add it again.

    Adding the reader again is not difficult but it would be great if it is possible to restore the default configuration .

  2. #2
    Sencha - Architect Dev Team Phil.Strong's Avatar
    Join Date
    Mar 2007
    Location
    Baltimore, MD
    Posts
    1,733
    Vote Rating
    51
    Phil.Strong is a jewel in the rough Phil.Strong is a jewel in the rough Phil.Strong is a jewel in the rough Phil.Strong is a jewel in the rough

      0  

    Default


    Yeah we're being too strict here.

    Work around for now would be to use undo!
    Phil Strong
    @philstrong
    #SenchaArchitect
    Sencha Architect Development Team

  3. #3
    Sencha Premium Member
    Join Date
    Dec 2011
    Location
    London, UK
    Posts
    231
    Vote Rating
    6
    bseddon is on a distinguished road

      0  

    Default


    That assumes you are 'undo'ing when relevant change history is available. If you realize later, after making other changes or maybe the next day, there's no relevant history. The work around then is to delete the component and start over.

  4. #4
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    8,883
    Vote Rating
    102
    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


    This will be fixed in build > 311.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar