21 Aug 2012 11:52 PM #1
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)
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()
22 Aug 2012 12:12 PM #2
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.
23 Aug 2012 11:58 AM #3
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
Just use an Ajax request and in callback of it create the Model instance.Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services email@example.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.