1. #1
    Sencha User
    Join Date
    May 2011
    Posts
    5
    Vote Rating
    0
    sheldoncoach is on a distinguished road

      0  

    Default "Load Data" still disabled on "Store" pull down.

    "Load Data" still disabled on "Store" pull down.


    "Load Data" still disabled on "Store" pull down.

    1. I’ve added an XMLStore. Just left the id at “MyXMLStore”. The model is set to “MyModel”
    2. Sencha brought over an AjaxProxy “MyAjaxProxy” as well as a DataReader “MyXmlReader”
    a. On the “MyAjaxProxy” object the URL is set to “http://localhost/SenchaApps/ConfigMobile/Users.XML.
    i. http://localhost/SenchaApps/ConfigMobile is my URL prefix for the project.
    b. On “MyXmlReader” the rootProperty is set to USERS this is the root node in my XML file.
    3. I added a model “MyModel” and added the fields “USERNAME” and “FULLNAME” which are the data nodes in my XML file.
    4. A added a “List” view to the project and set the Store to “MyXmlStore”.
    a. In the itemTpl property I’ve used {FULLNAME}, one of my fields.

    Must be missing something. Probably something simple.


    <?xml version="1.0" encoding="UTF-8"?>
    <USERS>
    <USER>
    <USERNAME>scoach</USERNAME>
    <FULLNAME>Sheldon Coach</FULLNAME>
    </USER>
    <USER>
    <USERNAME>csmith</USERNAME>
    <FULLNAME>Christine Smith</FULLNAME>
    </USER>
    <USER>
    <USERNAME>sjones</USERNAME>
    <FULLNAME>Sean Jones</FULLNAME>
    </USER>
    <USER>
    <USERNAME>jwilson</USERNAME>
    <FULLNAME>Jason Wilson</FULLNAME>
    </USER>
    <USER>
    <USERNAME>kwells</USERNAME>
    <FULLNAME>Kathy Wells</FULLNAME>
    </USER>
    </USERS>


  2. #2
    Sencha - Architect Dev Team Phil.Strong's Avatar
    Join Date
    Mar 2007
    Location
    Olney, MD
    Posts
    1,877
    Vote Rating
    62
    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


    Did you set record: 'USER' on the xmlreader?
    Phil Strong
    @philstrong
    #SenchaArchitect
    Sencha Architect Development Team

  3. #3
    Sencha User
    Join Date
    May 2011
    Posts
    5
    Vote Rating
    0
    sheldoncoach is on a distinguished road

      0  

    Default


    Yes. the rootProperty on XmlReader is set to "User". Attached is a zip of my project.
    Attached Files

  4. #4
    Sencha User
    Join Date
    Feb 2012
    Location
    Mercer Island, WA
    Posts
    66
    Vote Rating
    0
    DonRul is on a distinguished road

      0  

    Default


    Just a guess but would USERS/USER or USERS.USER do it

  5. #5
    Sencha User
    Join Date
    May 2011
    Posts
    5
    Vote Rating
    0
    sheldoncoach is on a distinguished road

      0  

    Default Did not work

    Did not work


    I tried USERS/USER, USERS.USER, //USERS/USER, etc. Niether seems to work.

  6. #6
    Sencha User
    Join Date
    Feb 2012
    Location
    Mercer Island, WA
    Posts
    66
    Vote Rating
    0
    DonRul is on a distinguished road

      0  

    Default


    When I have had this problem I first used Fiddler (virtual network scope) to make sure that the URL for the proxy was correct and that the data coming over the wire is in the format that I expect. The network pane in Chrome tools is helpful for this too. Then I created a refresh event on the store and drilled down into the store.items.raw to see how they are internally represented.

    I get the impression from other posts that I've seen that JSON gets more testing mileage if you have the ability to use it.

    Don

  7. #7
    Sencha User
    Join Date
    Feb 2012
    Location
    Mercer Island, WA
    Posts
    66
    Vote Rating
    0
    DonRul is on a distinguished road

      0  

    Default


    One other thing is to set a refresh on the List to see if for some reason it isn't properly associated with the store.

  8. #8
    Sencha - Architect Dev Team Phil.Strong's Avatar
    Join Date
    Mar 2007
    Location
    Olney, MD
    Posts
    1,877
    Vote Rating
    62
    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


    I'm seeing you need rootProperty set to USERS and record set to USER
    Phil Strong
    @philstrong
    #SenchaArchitect
    Sencha Architect Development Team

  9. #9
    Sencha User
    Join Date
    May 2011
    Posts
    5
    Vote Rating
    0
    sheldoncoach is on a distinguished road

      0  

    Default


    Sorry, but where do I set record to USER? Don't see a property for Record on the XmlReader. In the Sencha documentation it shows:

    In the reader, set the following:
    root/rootProperty. The name of the property which contains the array of row objects. Not applicable to Array Reader.
    record. The location within the response where the record data can be found. Not applicable to Array Reader. (Don't see a record property on XmlReader)
    Adding custom store configs

    In addition to the other store configs shown, add custom configs by typing the config name into the Filter field at the top of Config and clicking Add. The custom config will appear in the Config panel, where you can set it.
    Loading data to a store

    Once a store is succesfully configured, the exclamation point will no longer appear next to the store in the Inspector and the store is ready to load data. (I didn't get an exclamation point next to the "store" so I assumed I had it configured properly) To do that, right-click the store and select Load Data from the context menu that appears. If the store loaded the data successfully, Architect displays an eye icon next to the store in the Inspector. Position the cursor over the eye and Architect displays a message saying how many records were loaded. Click the eye to see the data in raw format in a separate window.
    If the store is unable to load data, Architect displays an exclamation point next to the store. Click the exclamation point to open an error message, which suggests what to do to enable the store to load data.

  10. #10
    Sencha User
    Join Date
    Apr 2012
    Posts
    25
    Vote Rating
    0
    sapkalparag is on a distinguished road

      0  

    Default


    Any luck?

    m trying a similar thing but in my case also the Load Store option is disabled.

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."