I am populating the data in selectfield from database.
How to get the selected text value from selectfield.
getValue() does n t wrks here.
My Model is ....
Ext
.regModel(
'Reason', {fields: [{name : 'description', type: 'string' },{name : 'holdId', type: 'string' },{name : 'name', type: 'string' }]
});
My store is.........
var
reasonStore = new Ext.data.Store({id: 'reasonStore',model: 'Reason',autoLoad: true,proxy: {type: 'ajax',method:'GET',url: '/AppsOrderProcessingMiddleware/resources/FetchReasonsService/getreasons',reader: { type: 'json',root: 'Response'
},success:
function(response, opts) {},failure: function(response, opts) { }}
});
and my definition for selectfield is like..........
xtype:
'selectfield',id : 'sel',store: 'reasonStore',//name: 'description',id: 'Description',label: 'Description',displayField: 'description',
valueField: 'holdId' ,