- Code: Select all
<script type="text/javascript">
// <![CDATA[
// ... excerpt, where the store data field is a javascript error ...
this.cboManufacturers = new Foo.GridComboBox({
msgTarget: 'qtip',
valueField: 'objectId',
displayField: 'formattedName',
gridRecordField: 'manufacturerOid',
grid: this,
typeAhead: true,
mode: 'local',
triggerAction: 'all',
forceSelection: true,
selectOnFocus: true,
lazyRender: true,
store: new Ext.data.SimpleStore({
fields: ['objectId', 'formattedName'],
sortInfo: {field: 'formattedName', direction: 'ASC'},
data :[
<web:dblist var="organizations" name="organizations-list" />
<c:forEach items="${organizations}" var="item" varStatus="it">
[
'${item.objectId}',
'<spring:escapeBody javaScriptEscape="true">${item.formattedName}</spring:escapeBody>'
]<c:if test="${!it.last}">,</c:if>
</c:forEach>
]
})
});
// ]]>
</script>
Thanks, Jim
