Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.
  1. #1
    Sencha Premium Member
    Join Date
    Mar 2010
    Location
    The Netherlands
    Posts
    77
    Vote Rating
    1
    siebe vos is on a distinguished road

      0  

    Question Stores config missing when publishing app

    Stores config missing when publishing app


    REQUIRED INFORMATION




    Architect Build tested: 2.1.0
    • Build: 676

    Project Type:
    • ExtJS 4.0.7

    Description:
    • This morning I started with a whole new project design (RelationPerformance.xds)
    • I first designed the whole screen as you can see in the xds, so I could use this as a screen design.
    • When I wanted to publish, I got the message that my combo's were missing stores (which is correct)
    • I created the stores (array stores) and in Architect the combo's showed the loaded values correctly
    • When I published the app and ran it I got an errormessage (me.store is undefined somewhere in the bind of the Ext Combobox component (StoreManager lookup)
    • After looking into older projects I noticed that the 'stores' config in the app.js is missing and not generated by Architect (I now added them myself to the app.js but of course Architect overwrites this)

    Steps to reproduce the problem:
    • See above

    The result that was expected:
    • See above

    The result that occurs instead:
    • See above

    HELPFUL INFORMATION




    Screenshot, Project, or Video:
    • attached xsd / screenshot

    Possible fix:
    • See above

    Operating System:
    • Windows 7
    Attached Images
    Attached Files

  2. #2
    Sencha Premium Member
    Join Date
    Mar 2010
    Location
    The Netherlands
    Posts
    77
    Vote Rating
    1
    siebe vos is on a distinguished road

      0  

    Default


    Also when doing save as and republish the app on a total different location does not make any difference.
    Hereby the code I had to add in the app.js
    Code:
        stores: [
            'RegionStore',
            'CountryStore',
            'LanguageStore',
            'BranchStore'
        ],

  3. #3
    Sencha - Architect Dev Team jjohnston's Avatar
    Join Date
    Sep 2010
    Posts
    541
    Vote Rating
    19
    jjohnston will become famous soon enough jjohnston will become famous soon enough

      0  

    Default


    Architect should be automatically populating that 'stores' array when you add the stores to the project. It shows up as a config when you select the Application node in the inspector. If your stores are not getting added to that array automatically, then something is going wrong internally. Did you add your stores in any special way? Did you rename them or take some other action on the stores once created? Any help you can give narrowing this down would be appreciated.

    FYI attaching the .xds file isn't enough to open it, we need the rest of the project metadata too. Could you attach an archive of your project instead? (File->Archive Project)
    Jason Johnston
    @lojjic
    Sencha Architect Development Team

  4. #4
    Sencha Premium Member
    Join Date
    Mar 2010
    Location
    The Netherlands
    Posts
    77
    Vote Rating
    1
    siebe vos is on a distinguished road

      0  

    Default


    Hi Jason,

    Thanks for your reply! To narrow it down is kind of hard. The only thing I know what I did different than otherwise is that I first created the layout of the screen (needed this to send to Sencha care for a performance issue in IE9). When I published the message came that stores needed to be connected to the combo's. I created these stores (did not rename them), also loading worked and then published again (without the warnings of the missing stores). Probably you will find something in the xda (by the way archiving does not work nor give a warning when you archive in the same folder as where the xds is in). RelationPerformance.xda

    After I had the problem I created a new project and first created the stores before publishing and with that one (very simple form) I had no problems. I haven't tried to reproduce this because it is quite some work to build such a complex and large screen.

    Thanks again!

    Bye,

    Siebe

    P.s. The project is renamed but the same as shown in the initial ticket
    Last edited by siebe vos; 26 Nov 2012 at 11:58 AM. Reason: typo

  5. #5
    Sencha - Architect Dev Team jjohnston's Avatar
    Join Date
    Sep 2010
    Posts
    541
    Vote Rating
    19
    jjohnston will become famous soon enough jjohnston will become famous soon enough

      0  

    Default


    Thanks for the project archive. Nothing looks out of the ordinary, and adding new stores populates the array as expected.

    We'll definitely keep an eye out going forward for cases where new stores aren't added to the stores array, but unfortunately I don't see anything here that will help us find it. Please let us know if you reproduce it again and can provide more info.

    In the meantime, you can populate the 'stores' array on the Application manually as a one-time fix.
    Jason Johnston
    @lojjic
    Sencha Architect Development Team

Thread Participants: 1

Tags for this Thread