Results 1 to 9 of 9

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

    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
      0  

    Default 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 User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,487
    Vote Rating
    146
      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

  3. #3
    Sencha User
    Join Date
    May 2009
    Posts
    4
    Vote Rating
    0
      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 User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,487
    Vote Rating
    146
      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

  5. #5
    Sencha User
    Join Date
    May 2009
    Posts
    4
    Vote Rating
    0
      0  

    Default Please take a look

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

  6. #6
    Sencha User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,487
    Vote Rating
    146
      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

  7. #7
    Sencha User
    Join Date
    Oct 2012
    Posts
    2
    Vote Rating
    0
      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 no consegui ? alguem poderia me ajudar?

  8. #8
    Sencha User
    Join Date
    May 2009
    Posts
    4
    Vote Rating
    0
      0  

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

    Default Como assim?

    Pelo que entendi da solicitao Jason, que o servidor C# no aceita solicitaes, tudo indica que temos que Gerenciar solicitaes 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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •