I am adding a combobox to a fieldset
it get the adresses from a store that gets its data using a DWRProxy, it uses XTemplate to display a nice list of the adresses and when i post the form, the 'id' of the address gets posted. All that is working as intended.
hiddenName: 'shipment-' + number + '-addr',
emptyText:'Select an address...',
The problem i have is when i want to set the value, (the address has been chosen before), i know the 'id' and its stored in variable 'addressId', so i thought i could use
but that sets the numerical id to the displayField instead of the 'friendly' value from the corresponding record. (but these records are not loaded yet, the store gets filled when you hit the trigger ...)
what is the best solution for this ?