PDA

View Full Version : getValue from combobox is not workinng



Coyote34
22 Apr 2015, 7:03 AM
Hi, there!

I need to getValue from this combo:

this.cboStatusOrc = new Ext.form.ComboBox({
itemId: 'cboStatusOrc'
,name:'orcamento_status'
,hiddenName:'orcamento_status'
,store: this.statusStore
,emptyText: 'Status'
,valueField: 'orcamento_status'
,displayField: 'orcamento_status_label'
//,typeAhead: false
,mode: 'local'
,triggerAction: 'all'
,editable: false
,forceSelection:true
,anchor: '100%'
,width:100
,minListWidth:100
,scope:this
});

To use in this function:



,setIndividualReadOnly:function() {
var obj = this;
var status = this.cboStatusOrc.getValue();
console.log(status);

// do something
}

I have tried obj, this, but still no message in console.
Any ideas why does not work?

Thanks

Gary Schlosberg
22 Apr 2015, 11:46 AM
I'm not seeing the problem here. Are you able to reproduce in a Fiddle so we can follow along?
https://fiddle.sencha.com/#home