ext 백그라운드에서 데이터 로드 프레임으로

1723 단어 ext
데이터 로드
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,

좋은 웹페이지 즐겨찾기