PDA

View Full Version : valueField is displayed in the combo box in form panel



amodg
2 Feb 2010, 3:38 AM
Hi,

I have a 'edit' functionality where the value in the combo box is populated upon receiving the json response. e.g.


{
name:'languageId'
,fieldLabel:'Language'
,valueField:'applanguageId'
,hiddenName: 'applanguageId'
,displayField:'text'
,forceSelection: true
,store:new Ext.data.JsonStore({
autoLoad :true
,fields: [{name: 'applanguageId'},{name: 'text'}]
,root: ''
,url: 'common.do?method=getLanguages'
})
}

Sometimes, the combo box displays an 'applanguageId' instead of 'text'. The same issue has been reported in one of the blogs...
http://lsaffre.blogspot.com/2009/09/extformcombobox-show-value-instead-of.html

Is there any workaround for this? Am I doing something wrong here?

Thanks
-Amod