1. #21
    Sencha Premium Member lorezyra's Avatar
    Join Date
    Dec 2007
    Location
    Japan -- 日本
    Posts
    638
    Vote Rating
    18
    lorezyra will become famous soon enough lorezyra will become famous soon enough

      0  

    Default


    I've updated my back-end to include the property "success" and Designer is still unable to load the data...

    Here is what my back-end outputs for my langStore:
    Code:
    {"success":true,"total":3,"langs":[{"id":"1","name":"\u4e2d\u6587","roman":"Chinese","rtl":"0","ISO639":"ZH"},{"id":"2","name":"English","roman":"English","rtl":"0","ISO639":"EN"},{"id":"3","name":"Espa\u00f1ol","roman":"Spanish","rtl":"0","ISO639":"ES"}]}

    Am I missing something? either I need to update my back-end or my ExtJs code (written by Designer) is wrong...
    Perfection as a goal is a nice idea that can point one in a specific direction. However, since "perfection" is an ever changing (evolving?) and moving target, one must admit that perfection can never be obtained...

    When in doubt, check the d4mn source code!
    ================================================
    And here are my terms...
    1. I don't care if you use my source code. (Known as "Code.")
    2. I don't care if I get any monetary compensation.
    3. I do care to receive credit for Code provided. So, please keep my name in the comments for Code provided.
    4. Code is provided without warranty "AS-IS" and I claim absolutely no warranty nor liability to the quality, security, and run-ability on any platform.
    5. By using Code, you accept all risk inherit with Code regardless if Code has known and yet to be discovered bugs.
    6. You are welcome to change and improve the Code to best meet your needs.
    7. I don't care if you use the Code in a commercial or open-source project.
    8. You are not required to contact me prior to using the Code.
    ================================================
    Simple. Enjoy.

  2. #22
    Sencha Premium Member
    Join Date
    May 2011
    Posts
    31
    Vote Rating
    1
    freshyseth is on a distinguished road

      0  

    Default


    @lorezyra

    The problem I had (which manifested with the same symptoms) was that the proxy information I used to register Ext Designer was not the same as what loaded data. So, the proxy information stored in the *.localstorage file was blocking the data from loading in Ext Designer. Deleting the file located at (for Windows 7):

    C:\Users\<username>\AppData\Local\Sencha, Inc\Sencha Designer 1.2\

    Removed the problem and everything was working as expected. I couldn't tell from your posts if you actually did the delete. If you did and it still isn't working then I'm not sure what to tell you. Reinstalling didn't help as the AppData retained the proxy information even after I removed Ext Designer. So, when I installed it back on the bad proxy data was pulled back in. It wasn't until I deleted that file that it worked.

  3. #23
    Sencha Premium Member lorezyra's Avatar
    Join Date
    Dec 2007
    Location
    Japan -- 日本
    Posts
    638
    Vote Rating
    18
    lorezyra will become famous soon enough lorezyra will become famous soon enough

      0  

    Default Proxy config is the problem

    Proxy config is the problem


    @ freshyseth:
    After saving my project and trying to see if it still failed from my home network, I found that it worked perfectly as expected from home!

    This tells me that Designer is using the same proxy details (used from registration) for accessing the web as it does for loading store data. I _REALLY WISHED_ they would provide a configuration tab inside the preferences window to change proxy information!!!

    At the office, the proxy is killing Designer. BAD DESIGN!!!! If I presented this tool to an enterprise (aka global) company that uses proxy-based networks, they would not buy it.


    And yes, even after I found the .localstorage file and deleted it, the stores continued to fail loading...
    Last edited by lorezyra; 27 Oct 2011 at 2:43 PM. Reason: clarity
    Perfection as a goal is a nice idea that can point one in a specific direction. However, since "perfection" is an ever changing (evolving?) and moving target, one must admit that perfection can never be obtained...

    When in doubt, check the d4mn source code!
    ================================================
    And here are my terms...
    1. I don't care if you use my source code. (Known as "Code.")
    2. I don't care if I get any monetary compensation.
    3. I do care to receive credit for Code provided. So, please keep my name in the comments for Code provided.
    4. Code is provided without warranty "AS-IS" and I claim absolutely no warranty nor liability to the quality, security, and run-ability on any platform.
    5. By using Code, you accept all risk inherit with Code regardless if Code has known and yet to be discovered bugs.
    6. You are welcome to change and improve the Code to best meet your needs.
    7. I don't care if you use the Code in a commercial or open-source project.
    8. You are not required to contact me prior to using the Code.
    ================================================
    Simple. Enjoy.

  4. #24
    Sencha User
    Join Date
    Nov 2011
    Posts
    3
    Vote Rating
    0
    atiwari is on a distinguished road

      0  

    Default Unable to open json file on localhost

    Unable to open json file on localhost


    I too have same problem,

    I'm unable to access data store in the grid of mine Ext js 4 code.
    I was unable to load/open .json file on localhost in Ext js designer,
    then i created a virtual directory on IIS server and tried to open through localhost, then too it is not working,
    although if I open it through visual studio and try to run the same application then it is working.

    Please can anyone guide me to solve this issue so that I can open the .json file on localhost.
    i.e.
    http://localhost/MyProject/data/file.json
    OR

    thanks in advance.

  5. #25
    Sencha User
    Join Date
    Nov 2011
    Posts
    3
    Vote Rating
    0
    atiwari is on a distinguished road

      0  

    Default


    duplicate
    Last edited by atiwari; 15 Nov 2011 at 10:01 PM. Reason: duplicate

  6. #26
    Sencha User
    Join Date
    Nov 2011
    Posts
    3
    Vote Rating
    0
    atiwari is on a distinguished road

      0  

    Default SOLVED the localhost issue for .json file

    SOLVED the localhost issue for .json file


    I got solution for this issue as :-
    configured the IIS server with .json mime type.
    1.gone to IIS Manager
    2. select "Default web sites"
    3. On right-down there is Mime type options is there click it
    4. Add
    5. in the popp-up :-
    file name as :- .json
    MIME type :- application/json

    and as I open on localhost it is working fine
    and even for Ext js designer also (just click on load store)

  7. #27
    Sencha User cdykeman's Avatar
    Join Date
    Jul 2012
    Posts
    1
    Vote Rating
    0
    cdykeman is on a distinguished road

      0  

    Default Additional Solution

    Additional Solution


    Another issue I've found is that the reader can have a hard time parsing quotation marks " ". If your .json file uses double quotation marks to define its fields (ex. "places": [{"name": "1"}) change these to single quotation marks (eg. 'places': [{'name': '1'}).

Similar Threads

  1. Replies: 3
    Last Post: 14 Dec 2010, 10:22 PM
  2. [DUPE-447] Ext.data.TreeStore firing "read" not "load"
    By benwhite in forum Sencha Touch 1.x: Bugs
    Replies: 1
    Last Post: 3 Nov 2010, 1:32 PM
  3. Configuration of JsonReader - root: as the "real root" of data?
    By antonye in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 21 Jun 2010, 2:47 AM
  4. "datafield" and " radio" with load data in a Form
    By launort in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 10 Aug 2009, 7:03 AM
  5. datastore load error"root is undefined"
    By netbox in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 17 Mar 2009, 1:39 AM

Thread Participants: 7