Sencha Inc. | HTML5 Apps

The Data Package

Published Apr 26, 2011 | The Sencha Dev Team | Guide | Medium
Last Updated Jul 11, 2011

This Guide is most relevant to Ext JS, 4.x.

Guide guides/data/README.js is not currently available
Share this post:
Leave a reply

Written by The Sencha Dev Team

11 Comments

Vitaliy Kupets

3 years ago

examples links are also broken here

David

3 years ago

Echoing Vitaly’s comments. It would be very useful if these links got updated for our learning.

Ivan Jouikov

3 years ago

+1, this is quite annoying

James Pearce Sencha Employee

3 years ago

@Vitaliy, @David, @Ivan - the links to the examples are correct. However, you should be aware that most of the examples do not have a UI - if you take a look at the code you’ll see that most of them load data, and, at most, write out some results to the console.

I agree that these examples would be more approachable if they wrote out to the DOM directly.

Ivan Jouikov

3 years ago

NOW the links are correct.  Earlier they took to 404 page.

James Pearce Sencha Employee

3 years ago

@Ivan, yes, that’s correct… we had a template issue that we fixed last night. But I think we should also strive to make these particular examples more visual.

Ivan Jouikov

3 years ago

Also, equal emphasis on XML, as you have on JSON, would be welcome.

David

3 years ago

Hi James,

Is there a more substantial example with regards to the Associations? For instance, with the data stored in files, as in the examples, it’s not possible to perform data updates. Also binding the data to various components is not so clear to me. For instance, say you were binding the User data to a FormPanel and the Post data to a gridPanel, what are the broad lines on how to do this?

One more question which maybe you can help me with is this. On the User and Post model there are two proxies defined. Does it mean that the dB gets hit twice?

Craig

3 years ago

sorters: [‘name’, ‘id’], // sort first by name, then by id

The above does NOT work a la aptana server - “internal server error” (firebug and chrome developer tool debugger are essentially useless here).

The above does not really work a la apache-http server.  I could ONLY get ONE sort element to work, i.e.:

sorters: [‘name’], // sort first by name

Or, sorters: [‘age’], // sort first by age

Note I am using 4.02a commercial.

I am also using the MVC project as my starting point, versus a small snippet (e.g., the ‘example’).

The view reference to the store, a la the MVC tutorial, ONLY works as follows:

store: ‘Users’,

I could NOT get something akin to this to work:

store: ‘AM.store.Users’,

While I’m here—I could NOT get treeview to work with ANY kind of external ‘store:’ reference what so ever.

I have yet to try GROUP and filter, and I’m sure I can expect continued temperamental behavior (at best).

Craig

3 years ago

I believe the single level sort behavior is related to the grid.Panel (MVC example)—it only allows a sort on a “per column” basis.  The filter did actually work, much to my surprise—it is a case insensitive contains feature versus a strictly equality (at least by default, not that there’s anything wrong with that).

Craig

3 years ago

I tried using the ‘rest’ versus ‘ajax’ type for the store to save changes (see the MVC tutorial).

Neither ‘rest’ nor ‘ajax’ will save the results (std apache-http server… or aptana - either one).

With the ‘ajax’ type, the http.log shows “200 ok” (obviously misleading), while the ‘rest’ type shows 405 (at least it displays an error). I surfed around for this, but I don’t see any solution in sight.

Leave a comment:

Commenting is not available in this channel entry.