Re: [dabo-users] Setting DropdownList.Value exception

Author: Ed Leafe

Posted: 2009-07-26 at 18:30:21

On Jul 26, 2009, at 5:01 PM, Miguel Lopes wrote:

> To get around this I'll code the form by hand, which I expect will

> raise no issues. But I have the feeling there is a bug lurking here.

This is an issue that we've come across several times, and have never

come up with an acceptable resolution. Basically, the list must be

populated before anything else happens to it, but the data binding

events try to set values in the list before the list is populated, and

so we get that error.

Paul, I'm wondering - could we trap this particular error, set a flag

in the object, and then add this to the end of the event loop using a

setAfter call? The flag would enable us to avoid infinite loops if an

attempt to set an invalid value was made, but would avoid erroring out

because of the wrong event order.

-- Ed Leafe

©2009 Ed Leafe