加载数据
var comboxStore = new Ext.data.JsonStore({
autoLoad:true,
url : '/fileSavePolicyConf/getPolicyParaCode',
fields : [
{name : 'collTaskParaId',mapping : 'COLL_TASK_PARA_ID'},
{name : 'collPolicyParaName',mapping : 'COLL_TASK_PARA_NAME'}
]
});
下拉框
var collTaskParaIdCombo = new ST.ux.ExtField.ClearableComboBox({
name:'collTaskParaId',
width: 150,
mode : 'local',
anchor:'97%',
allowBlank: true,
blankText : "不能为空",
forceSelection : true,
editable : false,
fieldLabel:'策略参数名称',
displayField:'collPolicyParaName',
valueField:'collTaskParaId',
hiddenField:'collTaskParaId',
triggerAction : 'all',
store : comboxStore
});
把下拉按钮加到其他列表
var formPanel = new Ext.form.FormPanel({
id:'node_formPanel2',
padding:10,
margin:10,
labelWidth:80,
split : true,
scripts : true,
autoScroll : true,
viewConfig : {forceFit : true},
layout:'form',
items:[
{xtype:'textfield', id:'policyParaId_text_add2',name:'policyParaId',anchor:'97%',fieldLabel:'策略参数id',hidden:true},
{xtype:'textfield', id:'policyDefineId_text_add2',name:'policyDefineId',anchor:'97%',fieldLabel:'策略参数id',hidden:true},
collTaskParaIdCombo,