1. #1
    Ext User
    Join Date
    Apr 2010
    Posts
    3
    Vote Rating
    0
    c.kienzl@o-range.at is on a distinguished road

      0  

    Default problem with json store in grid-> cant see data

    problem with json store in grid-> cant see data


    hi all,

    i try to use the extjs designer. up to this time i think its an grate toll. some kind of child isius, but its ok.

    i build an json store and load some data via ajax to them. i matched this store with an grid. in the design vie i see all rows in the grid (all data).

    when i klick on preview or i export the project, i didnt get the data. no data displayed in
    the grid

    has anyone a idea?

    thx

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


    Are you loading the store by using the autoLoad configuration and/or explicly loading the store like:
    Code:
    Ext.StoreMgr.lookup('myStore').load();
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  3. #3
    Ext User
    Join Date
    Feb 2010
    Posts
    7
    Vote Rating
    0
    ufologo22 is on a distinguished road

      0  

    Default


    Hi c.kienzl@o-range.at,
    I had the same problem but the solution was posted in the "bug" area of the forum.

    Basically, once the project is exported it created a folder called "mockup". I had to move the file containing my data (txt or php or whatever you are using) inside "mockup". I also had to make sure my json store was autoloading. Then it should work.

  4. #4
    Ext User
    Join Date
    Apr 2010
    Posts
    3
    Vote Rating
    0
    c.kienzl@o-range.at is on a distinguished road

      0  

    Default


    ok, i found the problem

    i copied my ext js script in the filedir of my php file. now it works!

    other question how to handle an editable grid with the return values to php?

  5. #5
    Sencha User mihaip007's Avatar
    Join Date
    Feb 2008
    Location
    Pretoria, South Africa
    Posts
    188
    Vote Rating
    0
    mihaip007 is on a distinguished road

      0  

    Default


    okay, hmmm. This is strange. I have the same problem. However I linked the store to a url such as "http://localhost/mydata/mydata.html". The same problem applies here: I get to view ALL the date in the design mode, but when I preview it or export it - there is no data.

    Why is that? I have tried to save the data file right next to the project file, but no success. What am I doing wrong? Oh and I ALSO have the autoload of the store on.

  6. #6
    Sencha - Management Team abe.elias's Avatar
    Join Date
    Aug 2008
    Location
    Palo Alto, CA
    Posts
    405
    Vote Rating
    3
    abe.elias is on a distinguished road

      0  

    Default


    @mihaip007 Can you share your XDS file? If not, what's the url property you have set on your Store? I assume you have a local webserver running. What is the URL path to the app? is it the root (http://localhost/) or in a sub dir (http://localhost/myapp/)?

    This sounds like a path issue.

  7. #7
    Sencha User mihaip007's Avatar
    Join Date
    Feb 2008
    Location
    Pretoria, South Africa
    Posts
    188
    Vote Rating
    0
    mihaip007 is on a distinguished road

      0  

    Default


    Hi...!

    Thanks for the quick reply. I have attached the xds file. I have created a json file with some data. It works in designer mode, but not in preview mode. That is the only issue.

    I have noticed that it was complaining that the json file could not be loaded and it gave me the url it was using, so I simply placed the file in location where I can access it using the url http://localhost/dev/survey.html

    Can you see what I am doing wrong?
    Attached Files

  8. #8
    Sencha User
    Join Date
    Mar 2010
    Posts
    33
    Vote Rating
    0
    wickedsheep is on a distinguished road

      0  

    Default


    Strange, I have the same problem. I've created the store with the designer and my store loads (I see my JSON data in Firebug), but grid shows only empty lines (" " values inside cells).

    Edit: I've even checked my store, data is there, just not shown in my grid.

    MyStore
    - reader
    -- jsonData
    --- mydata
    ---- 0
    ---- 1
    ---- 2
    ...
    Last edited by wickedsheep; 28 Apr 2010 at 11:35 PM. Reason: Additional information

  9. #9
    Sencha - Management Team abe.elias's Avatar
    Join Date
    Aug 2008
    Location
    Palo Alto, CA
    Posts
    405
    Vote Rating
    3
    abe.elias is on a distinguished road

      0  

    Default


    Quote Originally Posted by mihaip007 View Post
    Hi...!

    Thanks for the quick reply. I have attached the xds file. I have created a json file with some data. It works in designer mode, but not in preview mode. That is the only issue.

    I have noticed that it was complaining that the json file could not be loaded and it gave me the url it was using, so I simply placed the file in location where I can access it using the url http://localhost/dev/survey.html

    Can you see what I am doing wrong?
    Try removing the "http://localhost/" from the url config on the store. Are you exporting to the root of your website (http://localhost/) or do you export to a sub directory?

  10. #10
    Sencha User mihaip007's Avatar
    Join Date
    Feb 2008
    Location
    Pretoria, South Africa
    Posts
    188
    Vote Rating
    0
    mihaip007 is on a distinguished road

      0  

    Default


    Hi...!
    How do I know where it exports? Because I only click on the "preview" button. As about the "http://localhost/" part - yes I tried to remove it. Again it works in the designer, but not in the preview mode... very weird indeed hehehe.

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar