Results 1 to 4 of 4

Thread: How transport combobox value to url (proxy) - sencha 4

  1. #1

    Default How transport combobox value to url (proxy) - sencha 4

    Hi everybody,

    I would like to transport a value from a combobox to an url.

    I have tried this, but d'ont works:


    ...
    ...
    var mycombo = Ext.create('Ext.form.ComboBox', {
    id: 'mycombo',
    fieldLabel: 'Campaign',
    displayField: 'col1',
    valueField: 'col2',
    store: campaign,
    triggerAction: 'all',
    autoHeight: true
    });
    ...
    var myproxy = new Ext.data.HttpProxy({
    extraParams: { "campaign": Ext.getCmp('mycombo').getValue() },
    url: 'getReport.ashx',
    reader: new Ext.data.JsonReader({
    type: 'json',
    root: 'data',
    totalProperty: 'totalCount'
    })
    });

    Any ideas...i need help!!!

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,379
    Answers
    3997

    Default

    1. Please post in the appropriate forum. I have moved this to the Ext JS 4 Q&A forum for you.
    2. What is the value of the combobox when you try to get it?
    3. You should use Ext.data.proxy.Ajax and not Ext.data.HttpProxy.
    4. Please always wrap your code in code tags.
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

  3. #3

    Default

    Quote Originally Posted by mitchellsimoens View Post
    1. Please post in the appropriate forum. I have moved this to the Ext JS 4 Q&A forum for you.
    2. What is the value of the combobox when you try to get it?
    3. You should use Ext.data.proxy.Ajax and not Ext.data.HttpProxy.
    4. Please always wrap your code in code tags.
    1. Sorry and Thanks.
    2. The parameter campaign reach the Handler with null value.
    3. Ok, but is that relevante for my issue?
    4. OK. Sorry again.

  4. #4
    Sencha User
    Join Date
    Dec 2011
    Location
    Futuna Islands
    Posts
    1

    Default louis vuitton knockoff handbags


Posting Permissions

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