1. #1
    Sencha User
    Join Date
    Jul 2011
    Posts
    29
    Vote Rating
    0
    mario60 is on a distinguished road

      0  

    Default 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

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,754
    Vote Rating
    828
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    So you only want to respond with the ids?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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 in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Jul 2011
    Posts
    29
    Vote Rating
    0
    mario60 is on a distinguished road

      0  

    Default just

    just


    Hi,

    thanks for the reply.

    Let me explain myself better.
    In the case above, I would like to respond just:

    Code:
    {"success":true,"message":"Updated record","data":{"id":2, "last":"new text"}}
    and see the entire row. I am not able to get that.

    thks
    mario


    ps. otherwise it seems I need to do an extra SELECT query -server side-, to get the entire row data again.

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi