[CLOSED] Getting ComboBox ValueField with ExtJS

  1. #1

    [CLOSED] Getting ComboBox ValueField with ExtJS

    I would like to know if it is possible to get the ValueField of the selected Value for a ComboBox.

    Example :

    I have a ComboBox named DFE.

    I add the ValueField and DisplayedValue to its store by using the following code :

    var store = Ext.getCmp('DFE').getStore();
    store.add({ field1: input.id, field2: input.value });
    I can access the value of the valuefield or the displayfield using the following commands :

    Ext.getCmp('DFE').store.data.items[i].data.field1
    Ext.getCmp('DFE').store.data.items[i].data.field2
    field1 - ValueField
    field2 - DisplayValue

    But how can I get the valueField for the SELECTED value of the ComboBox?
    Thank you.
    Last edited by Daniil; Jul 10, 2013 at 4:24 AM. Reason: [CLOSED]
  2. #2
    Hi @extnetuser,

    Seems, a ComboBox's getValue method is what you are looking for.
    App.ComboBox1.getValue();

Similar Threads

  1. Combobox trigger in Extjs 4
    By yash.kapoor in forum 2.x Help
    Replies: 4
    Last Post: Jan 02, 2014, 7:49 PM
  2. Replies: 0
    Last Post: Feb 16, 2013, 11:20 AM
  3. [CLOSED] bug in combobox valuefield ExtNet 2.1
    By mirwais in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Nov 16, 2012, 4:23 PM
  4. [CLOSED] ComboBox shows ValueField instead of DisplayField in a Grid.
    By flormariafr in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Aug 06, 2010, 8:38 PM
  5. [CLOSED] [1.0] - ExtJs 3.3.0 - ComboBox Issue
    By drkoh in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jul 15, 2010, 10:46 PM

Tags for this Thread

Posting Permissions