-
14 Mar 2012 11:10 AM #1
writer example. Which Json response is needed?
writer example. Which Json response is needed?
Hi
let us consider the http://dev.sencha.com/deploy/ext-4.0...er/writer.html example.
When I update a cell (say under the column 'last'), I see that the POST data is
Object { last="new text", id=2}, and the response Json is the entire row
.Code:{"success":true,"message":"Updated record","data":{"id":2,"first":"Wilma","last":"new text","email":"wilma@flintstone.com"}}
I wish to use a similar script (grid+panel), and I am asking how to modify it as to make it possibile to respond just the id+'last' values. On my server side that would be somehow easier.
If I try, what I get is a empty row, but the two id+'last' values.
I guess I am asking something trivial, still I need some help
thks
mario
-
14 Mar 2012 12:52 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,656
- Vote Rating
- 435
So you only want to respond with the ids?
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
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 services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
14 Mar 2012 1:09 PM #3
just
just
Hi,
thanks for the reply.
Let me explain myself better.
In the case above, I would like to respond just:
and see the entire row. I am not able to get that.Code:{"success":true,"message":"Updated record","data":{"id":2, "last":"new text"}}
thks
mario
ps. otherwise it seems I need to do an extra SELECT query -server side-, to get the entire row data again.


Reply With Quote