Hybrid View

  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,185
    Vote Rating
    63
    aconran is just really nice aconran is just really nice aconran is just really nice aconran is just really nice aconran is just really nice

      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
    186
    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
    370
    Vote Rating
    1
    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.