On Dec 30, 2012, at 10:50 AM, Carey Gagnon <[email protected]> wrote:

> Yes Ed, I am calling new() as the form is launched from a parent form.
> 
> def afterInitAll(self):
>    self.new()
> 
> This is a standard I have set up for adding new records. Launch an ""add
> form" from a parent form. This is the only time this error has ever
> happened, and I have this sort of setup on more than a dozen forms

        You are either going to have to supply a default value for the new 
record's ProvinceState field that is in the dropdown, or (my preference) add an 
entry to the dropdown to indicate a blank value. Typically it has the caption 
"-select-" or something like that. Then in your business logic validation you 
simply check for that placeholder value, and disallow the save if they haven't 
made a selection.

        Dropdowns are wonderful UI elements for selecting from a small list of 
choices, but they come with them the limitation that all bound values must be 
present in the dropdown's choices, or else it cannot display anything.


-- Ed Leafe

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to