-
Unanswered: Model which loads a single record via its proxy
Unanswered: Model which loads a single record via its proxy
In the examples when loading data via a models proxy. You call load and pass a id. load(10)
http://docs.sencha.com/touch/2-0/#!/...ic-method-load
This id is then passed as a parameter on the request
I however just want to load a single request from a server.
The server does now not require or support the id parameter.
So I would just like to call load()
-
Sencha User
You can try overriding the load function, or use a separate proxy and set the Model data in the response, or using a Store and its load function.
The id parameter in the function is just to give your Model a unique id, rather than having one automatically generated.
-
Sencha - Senior Forum Manager
Just use an Ajax request and in callback of it create the Model instance.
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us