Sencha Architect Forums /
Sencha Architect 2.x: Help & Discussions /
Display combined values in Combobox
In my architect project I have a form with a combo box. The value field is set to id, but I would like to set the display field to the models first name + last name field. How can I do that within Sencha Architect?
Use a template in the ComboBox
Thank you for your response. Can you provide an example?
Attached is a simple example showing overriding the inner template used by the bound list in the combobox.
In terms of interface, this is much more challenging than we'd like it to be at this time. We'll work on that.
The provided example show both values, first and last name. But I have the issue that you can't select a value. Can you help me with this? I copied 1:1 from your example into my project.
PS: The valueField is numeric whereas the displayed items are not.
Sounds like a better approach for your particular situation would be using an additional field with a calculated value via a convert function.
I've attached an example that illustrates how to do this.