On Dec 30, 2012, at 3:18 PM, Adrian Klaver <[email protected]> wrote:
> Keys and Choices are as Ed pointed out a 1:1 mapping. You have accounted for
> all the possibilities except for the default value returned by self.new()
> which is "". If you want to continue using new() then you need to account for
> the "" value.
But since the string value he's adding to the dropdown's names is
"-Select A Province/State-", that's the string that the new record's
ProvinceState field should be set to. The better approach is to add this to his
bizProvinceState's afterInit():
self.DefaultValues = {"ProvinceState": "-Select A Province/State-"}
Now when new() is called, that field will have a the same value as the
extra name in the dropdown.
-- 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]