Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.
  1. #1
    Sencha User
    Join Date
    May 2009
    Posts
    4
    Vote Rating
    0
    commandus is on a distinguished road

      0  

    Default Ext.data.TreeStore does not added to the list of application models

    Ext.data.TreeStore does not added to the list of application models


    For exampke, if I define some TreeStore
    Ext.define('MyApp.store.jsonStoreSettlement', {
    extend: 'Ext.data.TreeStore',

    it does not take affect in the list:

    Ext.application({
    models: [
    'modelTemplate',
    'modelKind',
    'modelDirection'
    ],
    stores: [

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,206
    Vote Rating
    120
    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


    Creating a TreeStore will add it into the list of stores, not models.

    I've verified this is working in the current build. Do you have any more information?
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  3. #3
    Sencha User
    Join Date
    May 2009
    Posts
    4
    Vote Rating
    0
    commandus is on a distinguished road

      0  

    Default


    Sencha Architect creates file: app.js

    Ext.application({
    models: [
    'modelTemplate',
    'modelKind',
    'modelDirection',
    'modelSettlement',
    'modelContractor'
    ],
    stores: [
    'jsonStoreTemplate',
    'jsonStoreKind',
    'jsonStoreDirection',
    'jsonStoreContractor'
    ],

    What I do, add missing TreeStore manually on deploy:

    Ext.application({
    models: [
    'modelTemplate',
    'modelKind',
    'modelDirection',
    'modelSettlement',
    'modelOperativeData',
    'modelContractor'
    ],
    stores: [
    'jsonStoreTemplate',
    'jsonStoreKind',
    'jsonStoreDirection',
    'jsonStoreSettlement',
    'jsonStoreOperativeData',
    'jsonStoreContractor'
    ],

    where jsonStoreSettlement is tree store.

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


    I can't reproduce this in a simple project.

    Are you able to isolate it any better as to when it happens?

    Also rather than adding it manually in code, I'd suggest adding it to the stores/models configuration on the Application node. This will make it so that you only have to do the "fix" once.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  5. #5
    Sencha User
    Join Date
    May 2009
    Posts
    4
    Vote Rating
    0
    commandus is on a distinguished road

      0  

    Default Please take a look

    Please take a look


    there are missed treestore in attached project (zipped).
    Attached Files

  6. #6
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,206
    Vote Rating
    120
    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


    Okay, and if you click the application node and go to stores in the bottom right configuration and put in jsonStoreSettlement which Architect picks up and recognizes as a store. (Indicated by the icon seen when you search for it).

    Does this work properly? Did you add jsonStoreSettlement to another controller and then remove it from application?
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  7. #7
    Sencha User
    Join Date
    Oct 2012
    Posts
    2
    Vote Rating
    0
    diegoti3m@hotmail.com is on a distinguished road

      0  

    Default


    <httpProtocol>
    <customHeaders>
    <add name="Access-Control-Allow-Origin" value="*" />
    <add name="Access-Control-Allow-Credentials" value="True" />
    </customHeaders>
    </httpProtocol>

    Ví num totorial que é isso mas ainda não consegui ? alguem poderia me ajudar?

  8. #8
    Sencha User
    Join Date
    May 2009
    Posts
    4
    Vote Rating
    0
    commandus is on a distinguished road

      0  

    Default Maybe

    Maybe


    So, in this case I need remove treeview and add a new one?

  9. #9
    Sencha User
    Join Date
    Oct 2012
    Posts
    2
    Vote Rating
    0
    diegoti3m@hotmail.com is on a distinguished road

      0  

    Default Como assim?

    Como assim?


    Pelo que entendi da solicitação Jason, é que o servidor C# não aceita solicitações, tudo indica que temos que Gerenciar solicitações via CORS in WCF

    Traduzindo

    As I understand Jason's request, the server is C # does not accept requests, it seems that we have to Manage requests via CORS in WCF