If you bind a table column to any list control, all of the values in the column must be present kn. The co trol's Choices property.
If you just want to give them some typical defaults, bind the column to a plain textbox and add the dropdown as an unbound control. Add a handler for when the user makes a selection that sets the textbox's Value to their selection. -- Ed Sent from my iPhone, so please excuse any top-posting. On Jan 9, 2010, at 2:04 PM, Sim Zacks <[email protected]> wrote: > I'm having a problem with dComboBox. I am writing a database app where > the items in the drop down list are a suggestion, but the user can > also > type in whatever he wants. > I have given a Choices list but not a Keys list and set the > ValueMode to > be String. > When the value in the database is not in the Choices list, it gives me > the "String must be present in the choices." error. > > I looked through the code here and I can't seem to figure out a way to > show me and/or save the values that I type in but aren't in the > list. In > the StringValue property of dControlitemMixin.py it states: "An > exception is raised if there is no position with matching text." which > seems to be the exact feature i am looking for. > > Have I missed something? > > Thanks > Sim > _______________________________________________ > 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] > _______________________________________________ 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]
