Results 1 to 2 of 2

Thread: Only FF can do Combobox getValue() ? (with hiddenName)

  1. #1
    Sencha User
    Join Date
    Jan 2010
    Posts
    65

    Default Only FF can do Combobox getValue() ? (with hiddenName)

    Hi,

    Really confusing about this one. I have searched the forum and every solution concerning sending/getting valuefield instead of displayfied etc is based on setting a hiddenName (not the same as the id). But i am not able to get any Value on Select event for my combobox..at all.

    Code:
     xtype: 'combo',
          id:'year',
                            fieldLabel: 'Select Type',
                            anchor: '20%',
          store: new Ext.data.SimpleStore({
      fields: ['my_id','name'],
      data :
      [
     
       ['01','Admin'],
       ['02','User']   
      ]
     }), 
          typeAhead: true,
          displayField: 'name',
          valueField:'my_id',
          hiddenName: 'comboUser',
          forceSelection: true,
          selectOnFocus:true,
          triggerAction: 'all',
          emptyText:'Select a User:',
          mode : 'local',
          listeners:{
     
          select:function(combo,value){
          year=Ext.getCmp('year').getValue();
            Ext.Msg.show({
           title:'Success'
           ,msg:year
           ,modal:true
           ,icon:Ext.Msg.WARNING
           ,buttons:Ext.Msg.OK
           });
     
          }
    Works in FF.Any ideas ?

    Thanks

  2. #2
    Sencha User
    Join Date
    Jan 2010
    Posts
    65

    Default

    it now works.

    Code:
    listeners:{
    						
    select:function(combo,value,i){
    year=combo.getValue();          
                  
    		
    						
    }

Similar Threads

  1. ComboBox hiddenName and setValue
    By oakin in forum Ext 3.x: Help & Discussion
    Replies: 11
    Last Post: 23 May 2011, 6:47 AM
  2. Confused about Combobox with hiddenName
    By missgextjs in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 26 Sep 2010, 9:42 PM
  3. Strange Combobox - hiddenname
    By Asadjan in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 25 Jun 2010, 7:10 AM
  4. Combobox hiddenName question.
    By jctbmw in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 17 Apr 2008, 1:03 PM
  5. Combobox: name and hiddenName
    By makcuk in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 29 Feb 2008, 6:00 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
  •