Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext JS Premium Member Artistan's Avatar
    Join Date
    Apr 2007
    Location
    MN
    Posts
    144
    Vote Rating
    0
    Artistan is on a distinguished road

      0  

    Default Store Bugs: Ext Designer 1.2

    Store Bugs: Ext Designer 1.2


    Store Bugs: Ext Designer 1.2

    Update: simple example here: http://test.artistandesigns.com/extjs/designer.html
    // with a Ext.create for the store...
    http://test.artistandesigns.com/extjs/with_create.html
    (loads grid!)

    ( Note: this is not a duplicate thread, my last report included 2 bugs, one was solved)
    Data Stores not loading, the stores config on Ext.application is NOT creating the stores for me.
    I need to create them myself before including the application js.

    Code:
        Ext.onReady(function(){
            // need to create the stores so they exist in the store manager before init
            Ext.create('app.store.a');
            Ext.create('app.store.b');
            Ext.create('app.store.c');
            Ext.create('app.store.d');
        });
    // stores are created, now I can load the designer.js
    // maybe this is due to DirectStores??????
    Designer version tested:
    • 1.2.0
    Operating System:
    • Windows 7
    Framework:
    • Ext JS 4.0.6
    Description:
    • Here is an example of the store disconnect. I have created a NEW designer 4.0.x project and using 4.0.6
      The store is not "disconnected" but simply not created or in the store manager.
      I believe it has to do with the stores config on the application not creating the store and then the grid is trying to config the store by id, which requires the store to be loaded into the manager?

      To work around this I added an Ext.create to the application.launch method.

      http://www.sencha.com/forum/showthre...l=1#post640960

      Updated my to call create in initComponent method on the view that is using the store.

      Looks like it is the store on a combobox.....
      me.store is undefined

      [IMG]chrome://firebug/content/blank.gif[/IMG] me.store.on({

      ext-all-debug.js LINE: 70894

    Test Case:
    attached below...

    Code to load store:

    Ext.create('app.store.PhoneEmployeeSearch');

    I did this in the view that is using the store (initComponent).



    See this URL : http://www.sencha.com/forum/showthre...l=1#post640960
    dev is not public.
    http://test.artistandesigns.com/extjs/designer.html


    Steps to reproduce the problem:
    • Create a grid
    • Add a direct store
    • export project
    • will not load store.
    The result that was expected:
    • store should be in the store manager without having to use Ext.create.
    The result that occurs instead:
    • need to manually initialize the store with a create statement
    Debugging already done:
    • firebug shows me.store undefined errors
    Possible fix:
    • Ext.application stores array should be creating instances of the stores?
    Last edited by Artistan; 6 Oct 2011 at 11:57 AM. Reason: test case made

  2. #2
    Ext JS Premium Member Artistan's Avatar
    Join Date
    Apr 2007
    Location
    MN
    Posts
    144
    Vote Rating
    0
    Artistan is on a distinguished road

      0  

    Default


    tried http://extjs.cachefly.net/ext-4.0.2a/ext-all-dev.js as suggested before.
    same issue.

  3. #3
    Ext JS Premium Member Artistan's Avatar
    Join Date
    Apr 2007
    Location
    MN
    Posts
    144
    Vote Rating
    0
    Artistan is on a distinguished road

      0  

    Default


    standard export from designer...
    http://test.artistandesigns.com/extjs/designer.html
    (does not load store or anything)

    // with a Ext.create for the store...
    http://test.artistandesigns.com/extjs/with_create.html
    (loads grid!)

  4. #4
    Ext JS Premium Member Artistan's Avatar
    Join Date
    Apr 2007
    Location
    MN
    Posts
    144
    Vote Rating
    0
    Artistan is on a distinguished road

      0  

    Default


    So that bug example shows that the store does NOT exist on load and then the grid attempts to add an on storeload event which fails because the object does not exist.

    Note, the grid works fine in designer and preview.

  5. #5
    Ext JS Premium Member Artistan's Avatar
    Join Date
    Apr 2007
    Location
    MN
    Posts
    144
    Vote Rating
    0
    Artistan is on a distinguished road

      0  

    Default xds file for the above example!!


  6. #6
    Sencha - Architect Dev Team Phil.Strong's Avatar
    Join Date
    Mar 2007
    Location
    Olney, MD
    Posts
    1,919
    Vote Rating
    63
    Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice

      0  

    Default


    Artisan ... you rock with your detailed post(s). Looking into this now.
    Phil Strong
    @philstrong
    #SenchaArchitect
    Sencha Architect Development Team

  7. #7
    Ext JS Premium Member Artistan's Avatar
    Join Date
    Apr 2007
    Location
    MN
    Posts
    144
    Vote Rating
    0
    Artistan is on a distinguished road

      0  

    Default


    Thank You,
    I am looking forward to a solution, whether it be my mistake or a bug.

  8. #8
    Sencha - Architect Dev Team Phil.Strong's Avatar
    Join Date
    Mar 2007
    Location
    Olney, MD
    Posts
    1,919
    Vote Rating
    63
    Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice

      0  

    Default


    Artistan can you try to make your storeId the same as your userClassName and see if this fixes the issue. This is another but we are fixing but I think it may be related.
    Phil Strong
    @philstrong
    #SenchaArchitect
    Sencha Architect Development Team

  9. #9
    Sencha - Architect Dev Team Phil.Strong's Avatar
    Join Date
    Mar 2007
    Location
    Olney, MD
    Posts
    1,919
    Vote Rating
    63
    Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice

      0  

    Default


    In case it's not clear I'm referring to your direct store (in the above comment)
    Phil Strong
    @philstrong
    #SenchaArchitect
    Sencha Architect Development Team

  10. #10
    Ext JS Premium Member Artistan's Avatar
    Join Date
    Apr 2007
    Location
    MN
    Posts
    144
    Vote Rating
    0
    Artistan is on a distinguished road

      0  

    Default


    Worse now.
    Not even loading data in Designer 1.2.2 Build: 48
    Shows the "Load Data" on store, but does nothing.
    Does not hit the Direct API server, checking logs, so it is literally doing nothing!

    any ideas?

    I did change the storeId to the same as userClassName, still no luck.

Thread Participants: 2