Results 1 to 2 of 2

Thread: RESTful web services manual

  1. #1
    Ext User
    Join Date
    Dec 2010

    Default RESTful web services manual

    Hello, I am new to extjs and apologize if this has been covered before. I have a couple of questions about the Manual page for RESTful Web Services:

    First, it seems this doc was originally written around 2008. Is it perhaps dated or has extjs 3.3.x improved on the areas the author of the doc hoped for?

    Second, I'm having trouble with the following code snippet:

    Ext.Ajax.disableCaching = false;
    var cb = new Ext.form.ComboBox({
    store: new{
      proxy: new{
       url: '/resource',
       method: 'GET',
       params: {
    myquery: 'something'
      reader: new{
       fields: ['id']
    displayField: 'id',
    valueField: 'id',
    triggerAction: 'all',
    renderTo: document.body
    When I execute this, the parameters passed in the GET are not what I was expecting (i.e., "myquery=..."), but rather seem to come from the combobox as "query=...". I gather I can quiet the combobox by setting `queryParam` to an empty string, but how might I use `HttpProxy`s params?

    Many thanks

  2. #2
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    The Netherlands


    1. No, setting queryParam to an empty string is not supported (if you really wanted to, you could remove the parameter in the beforeload event).

    2. HttpProxy doesn't have a 'params' config option; it has an 'extraParams' config option. However, it's more common to use the store baseParams for this.

Similar Threads

  1. How to connect to web services
    By rpertierra in forum Ext Designer: Help & Discussion
    Replies: 1
    Last Post: 24 Nov 2010, 6:05 AM
  2. Restful Web Services - XMLReader
    By megaskins in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 1 Feb 2010, 11:45 AM
  3. Remote Web Services
    By Tereno in forum Ext GWT: Help & Discussion (1.x)
    Replies: 3
    Last Post: 17 Jul 2008, 1:35 PM
  4. ExtJS with RESTful Web Services
    By JoeK in forum Ext 2.x: Help & Discussion
    Replies: 9
    Last Post: 5 Dec 2007, 12:46 AM

Posting Permissions

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