这是我的代码:
{header: "Kabupaten", width: 60, sortable: true, dataIndex: 'id_k',
renderer: function(value, metaData, record, rowIndex, colIndex, store) {
return rend_kab(value);
},
editor: new Ext.form.ComboBox({
listeners: {
beforequery: function(qe){
qe.combo.store.setBaseParam('id_p', "VALUE FROM THE OTHER FIELD");
},
scope:this
},
store : kab,
valueField: 'id_k',
displayField: 'nm_kb',
triggerAction: 'all'
})
},
{header: "Provinsi", width: 60, sortable: true, dataIndex: 'id_p',
renderer: function(value, metaData, record, rowIndex, colIndex, store) {
return rend_prov(value);
},
editor: new Ext.form.ComboBox({
store : prov,
valueField: 'id_p',
displayField: 'nm_p',
triggerAction: 'all'
})
}
请参阅文本“其他字段的值”,我希望它更改为同一行中字段“id_p”的值...我该怎么做?谢谢...