View Full Version : Stores: Calling a service that returns json but no SUCCESS field?

16 Apr 2014, 6:55 AM
Hi there,

I have been looking into stores and I wish to create a store to call a restful service that returns a list of fields but no Success field (carrying a boolean). After reading this I left a little confused http://docs.sencha.com/extjs/4.2.2/#!/api/Ext.data.reader.Reader and here

I can't modify my service to include a Success field but the reader needs one ? I know you can reconfigure the name of the Success property, but i simple don't have one.

What are my options here?

Also my model has some properties i.e. UserId but my service returns Id, what are my options for mapping when a model property doesn't match the name of a property being returned from a service.

Any help really appreciated


Gary Schlosberg
30 Apr 2014, 5:21 AM
How does your service indicate that the data was successfully generated?

30 Apr 2014, 5:41 AM
The success field isn't required. Omit it from the reader:

successProperty: ''