On Thursday 21 August 2008 10:00:29 am Ed Leafe wrote:
> On Aug 21, 2008, at 12:52 PM, johnf wrote:
> > Does anyone have an example of using a combobox. The first pass I
> > fill-in the
> > textbox with an item not in the available list associated with the
> > combobox.
> > The text is save correctly into the database. However, when I re-
> > open the
> > record with the just saved text I get the error ("String must be
> > present in
> > the choices.") that comes from dControlItemMixin. The error is
> > correct -
> > the text is not in the choices. So would someone be kind enough to
> > tell me
> > the best way to avoid this issue?
>
> You're obviously not populating the choices each time from the
> database.
>
> -- Ed Leafe
Your right. But I was expecting that the combox would be similar to the VFP
combobox with style=0. Where I believe the data retrieved (from the saved
data) does NOT complain about the retrieved value not being on the list.
I'm going to use a union in my select statement to get around the problem.
select state from customer union select state from postalcodes
--
John Fabiani
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]