问题描述
- JS的combobox加载清单时获取文本值并作为参数执行查询
-
//注册的ComboBox //想在此处取出界面上文本框的值,作为action中方法的参数,如何处理 var StrNUMPSColumn = new Ext.form.ComboBox({ id : 'combo_num_ps', name:'strsqlhead.strWo', fieldLabel: lbl_num_ps, triggerAction: 'all', editable: true, width: 180, minListWidth:160, //cmbFdcldsList=FdcldsList store: cmbFdcldsList, allowBlank: true, displayField: 'text' }); //调用的方法 var FdcldsList = Ext.extend(Ext.data.JsonStore, { constructor : function(cfg) { cfg = cfg || {}; FdcldsList.superclass.constructor.call(this, Ext.apply({ storeId : 'FdcldsList', root : 'root', url : 'ReadFuncList1.action', fields : [{ name : 'text' }] }, cfg)); } }); //action配置 <!-- 读取在制的工单 --> <action name="ReadFuncList1" class="Action.DailyReport" method="ReadFdcldsListonline"> <result type="json" name="success"> <param name="root">page</param> </result> </action>
时间: 2024-12-25 21:49:21