var stateStores = new Ext.data.JsonStore({
??? ??? ??? ??? autoLoad : true,
??? ??? ??? ??? url : " ",
??? ??? ??? ??? root:'data',
??? ??? ??? ??? fields : ['value', 'text']
??? ??? ??? });
??? stateStores.load();
var statute = new Ext.form.ComboBox({
??? ??? ??? ??? fieldLabel : '计划名称',
??? ??? ??? //??? hideLabel :true,
??? ??? ??? ??? id : 'statute',
??? ??? ??? ??? name : 'statute',
??? ??? ??? ??? hiddenName : 'projectname',
??? ??? ??? ??? triggerAction : 'all',
??? ??? ??? ??? readOnly : true,
??? ??? ??? ??? store : stateStores,
??? ??? ??? ??? mode : 'local',
??? ??? ??? ??? valueField : 'value',
??? ??? ??? ??? displayField : 'text',
??? ??? ??? ??? anchor : '98%',
??? ??? ??? ??? value : ''
??? ??? ??? });
?stateStores.on('load',function(store,record,opts){?
???? var combo = Ext.getCmp("statute");?
???? var firstValue = store.getRange()[0].data.value;//这种方法可以获得{dy}项的值
???? combo.setValue(firstValue);
?? });