var a;
       var dwField = new Ext.form.ComboBox({
            fieldLabel:'管理员',            
            mode: 'local',                           
            width:70,                                
            id:'user_name',                        
            name:'user_name',
            editable:false,
            allowBlank:true,
            typeAhead:true,
            triggerAction: 'all',
            selectOnFocus:true,
            store:Ext.basicdata.user,
            emptyText:'-请选择-',  
            hiddenName:'u_id',                                               //用户ID
            valueField: 'user_id',   
            displayField: 'user_name',    
     
            listeners:{        
                   select : function(combo, record,index)   
                   {    
                       jhField.clearValue(); //可以实现当队下拉值变更时,清空之前井号下拉选项中的值   
                       SegField.clearValue();
                       storejh.proxy= new Ext.data.HttpProxy({url: './DataPageHand.aspx?method=GetAirLine&user_id='+combo.value}); //根据队下拉选项的改变,动态取出对应的井
                       a=combo.value
                       storejh.load(); //加载航段下拉框的store
                       
                   }      
               }   
    });  

 

================================================================

 

alert(Ext.getCmp('user_name').getValue());
alert(Ext.getCmp('user_name').getRawValue());

相关文章:

  • 2022-01-01
  • 2022-12-23
  • 2021-09-24
  • 2022-12-23
  • 2021-05-31
  • 2021-11-07
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-17
  • 2022-12-23
  • 2021-09-03
相关资源
相似解决方案