I have a store with the following fields:
- personName
- primaryRole
- secondaryRole
I want to populate a combo-box so that I can choose from either their primary or secondary role.
The combobox code I currently have looks like this:
roleName: {
editor: Ext.create('Ext.form.ComboBox', {
store: persons,
queryMode: 'local',
displayField: 'primaryRole',
valueField: 'primaryRole'
}),
displayName: 'Role'
}
Is it possible to populate a combobox from two store fields, if so, how?