PDA

View Full Version : Form: load-action for ComboBox with remote store



vivid-planet
6 Jul 2007, 4:56 AM
Hello,

I have a Form with a ComboBox that has a remote store (HttpProxy). Of course I can't load the form including the combobox if the values for the ComboBox-Store aren't loaded (they get loaded on combobox-trigger)

So i found a workaround; in the load action i send the value and the displayed value of the combobox! It works like this:

form.load({
url: '....',
success: function(form, action) {
form.findField('station_id').setRawValue(action.result.data.station_name);
}
});

But I really don't like this hack...
Has anyone a better Idea for my problem?
(I gues this is quite common)

thanks,
niko