1. #1
    Sencha User
    Join Date
    Aug 2007
    Posts
    11
    Vote Rating
    0
    rohitghatol is on a distinguished road

      0  

    Default How to get JSON/XML from EditorGrid or Grid (or ListStore) to update rest service

    How to get JSON/XML from EditorGrid or Grid (or ListStore) to update rest service


    Hi,
    There is my scenario

    I have a restful service (json) which provides CRUD functionality. I could load Grid from JSON Rest ful service.

    Now, I am using a Editor Grid and I change the fetch data and want to update the rest ful service.
    So I will catch event on either Grid/EditorGrid or ListStore and from there I will manually update restful service.

    The main thing here is I want to get the JSON or XML of the row (which I originally fetched from restful service), so I can change it and sent an update back to server.

    If some one could guide on this, I could make my crucial decision of making GXT as my rendering framework.

    Cheers,
    Rohit

  2. #2
    Sencha - GXT Dev Team BrendanC's Avatar
    Join Date
    Aug 2010
    Posts
    534
    Vote Rating
    3
    BrendanC is on a distinguished road

      0  

    Default


    Once you have the ModelData for the row from the event, you can convert it to JSON for your server using something like this:
    Code:
    new JSONObject(Util.getJsObject(mymodeldata, 10))
    getJsObject is part of GXT and JSONObject is part of GWT.

Similar Threads

  1. How to do CRUD operation using Grid with JSON Rest ful service
    By rohitghatol in forum Ext GWT: Discussion
    Replies: 4
    Last Post: 12 May 2012, 12:47 PM
  2. gridPanel shows data from REST service in IE but not in Firefox
    By mirceat in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 26 Feb 2010, 3:02 AM
  3. Problems when requesting REST service
    By gaquino in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 10 Dec 2009, 12:21 PM
  4. combobox and parameterized rest service
    By sebmiz in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 9 Dec 2008, 8:21 AM
  5. Designing my REST web service for ExtJS
    By cappuccino in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 13 Oct 2008, 10:23 PM

Thread Participants: 1

Tags for this Thread

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..."