Results 1 to 2 of 2

Thread: Passing data from grid to servlet upon updation

  1. #1
    Sencha User
    Join Date
    Oct 2013
    Posts
    1
    Vote Rating
    0
      0  

    Default Passing data from grid to servlet upon updation

    Hi All,
    I'm a newbie to ExtJS and very much excited to learn about it. I'm working on the CRUD operations in the grid. I'm able to read data from DB through servlet using PROXY in ExtJS. But while updating the data in the grid I'm not able to fetch the json object in the servlet. Please find the code snippet for the 'Store' below:Please tell me how to fetch the json data in the servlet.
    Code Snippet:
    Ext.define('BM.store.Users', { extend: 'Ext.data.Store',
    model: 'AM.model.User',
    autoLoad: true,
    proxy: {
    type: 'ajax',
    actionMethods:{
    read:'GET',
    update:'POST'
    },
    api: {
    read: 'Servlet1Name',
    update: 'Servlet2Name'
    },
    reader: {
    type: 'json',
    root: 'users',
    successProperty: 'success'
    },
    writer: {
    type: 'json',
    writeAllFields: true,
    root: 'users'
    }

    }

    Thanks in advance.:-)
    });

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506
    Vote Rating
    296
      0  

    Default

    So your Servlet2Name script is not getting any data? Is it checking for a POST?

Tags for this Thread

Posting Permissions

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