Mike,

My guess is that you are running into a timing issue. It appears that 
you are trying to set a value to the combobox that does not currently 
exist in the combobox keys. Before assigning a value to the combobox you 
need to populate its keys. Further, the combobox datasource refers to 
the target of the combobox value and not source of the keys.

Hope this helps,
Larry Long



On 7/7/2010 4:50 AM, Mike Turchenkov wrote:
> Hello, thanks a lot for dabo!
>
> Say please should I use a separate bizobj for populating list(and also combo
> and dropdown)box with key-name pairs that are calculated from another table?
>
> As for now, getNamesAndKeys(self) is in Test_TableBizobj.py, DataSource is
> test_table for form and listbox simultaneousely. And when ValueMode = key,
> then I get
>
> File
> "/usr/local/lib64/python2.5/site-packages/Dabo-0.9.2-py2.5.egg/dabo/ui/uiwx/dControlItemMixin.py",
> line 239, in _setKeyValue
>      raise ValueError(_("Trying to set %s.Value to these invalid selections:
> %s") % (self.Name, invalidSelections))
> ValueError: Trying to set dComboBox.Value to these invalid selections: [3]
>
>
> --- StripMime Report -- processed MIME parts ---
> multipart/alternative
>    text/plain (text body -- kept)
>    text/html
> ---
> _______________________________________________
> 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]
>


--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---
_______________________________________________
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]

Reply via email to