자바스크립트/ExtJS
ExtJS - ComboBox에서 Key값 submit이 안될경우
finkle
2009. 5. 19. 16:52
ComboBox에서 선택한 값의 key 정보가 넘어가지 않고 value 정보가 넘어가는 경우가 있다.
이럴때에는 아래와 같이 hiddenName을 삽입해줘야 한다.
{
xtype : 'combo',
fieldLabel : '처리기간 산정기준',
name : 'dealStdCd',
hiddenName : 'dealStdCd',
store : new Ext.data.Store({
url: CTX_PATH + '/zebra/app/commons/ajax_codeList.jsp',
baseParams : { cmd:'codeList', grpCd:10 },
reader: new Ext.data.JsonReader({
root: 'datas'
}, ['id', 'displayName']
),
autoLoad: true
}),
valueField:'id', displayField:'displayName',
triggerAction:'all', mode:'local', editable:false
}