Results 1 to 3 of 3

Thread: POST method in Data.Store

  1. #1

    Default POST method in Data.Store

    Please help!
    I want to load a grid , but using a POST method , and that upon my inquiry add two parameters , I need help because I have no idea how to create the store , I read post about the method post in Ext.Ajax.Request , but the truth is that I fail to understand , the type of arrangement that my receipt by the URL is the following type:

    [ {Id : "1 " name : "Peter " , etc : " etc "} ]

    Please help.
    I am using Extjs 4 please help

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

    You should be able to add additional parameters using the extraParams config on your proxy.

    By default, grids read using GET.
    http://docs.sencha.com/extjs/4.2.5/#...-actionMethods

    You can probably set to POST using something like the following:
    Code:
    Ext.apply(Ext.data.proxy.Ajax.prototype, {
    	actionMethods : {create: "POST", read: "POST", update: "POST", destroy: "POST"}
    });

  3. #3

    Default

    You could tell , about how to make it work in my data.store .A broader example would be more helpful and I would greatly appreciate it !Thank you

Similar Threads

  1. Can't set Store Proxy method to POST
    By azamatoak in forum Sencha Touch 2.x: Q&A
    Replies: 1
    Last Post: 14 Jan 2013, 4:21 PM
  2. set form submit method post in store.load() method
    By nareh tank in forum Sencha Touch 2.x: Q&A
    Replies: 1
    Last Post: 24 May 2012, 2:19 PM
  3. Problems getting data from an ASP.NET web service using the POST method
    By MihaelaCiocoiu in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 11 Nov 2010, 7:26 AM
  4. Store load 302 in POST method
    By tomalex0 in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 19 Nov 2009, 9:59 PM

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
  •