Results 1 to 5 of 5

Thread: How to Save data in xml file

  1. #1
    Ext User
    Join Date
    Jul 2008
    Posts
    175
    Vote Rating
    0
      0  

    Question How to Save data in xml file

    Dear All,
    Can anyone tell me how to save form field values in xml file.Is there any example as such.please let me know.

    Thanks
    AmitOlsys

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    118
      0  

    Default

    By default Ext posts simple name=value pairs.

    If you want to post XML you should collect the form values, build your own XML and post the result using Ext.Ajax.request().

  3. #3
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    118
      0  

    Default

    Or where you asking how to update a static XML file that was used as the source for a store?

    For that you'll need an application server that processes the submitted data.

  4. #4
    Ext User
    Join Date
    Jul 2008
    Posts
    175
    Vote Rating
    0
      0  

    Default

    Work is in progress. So Application Server is available with it since it works with Internet Information Service i.e. IIS installed with it. I am using XML file to populate the grid data(and it is populated ,I think that if no Application server is available then it could not be populated) and with editor grid, I wanted to update the same xml file.

    SO, Is there any example to update xml file with data changes.

    Thanks and Regards
    AmitOlsys

  5. #5
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    118
      0  

    Default

    1. Create a database table that holds the data.
    2. Create a servlet (sorry I'm a J2EE developer) that returns the data in XML (or JSON) format.
    3. Create a servlet that handles submitted changes and writes these to the database.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •