Hello, I've got a table for categories and another for items in those categories. Now I want to create a very simple form: a dropdown list for the category names and a grid showing the most important fields of the items table. The grid should always show the records belonging to the category chosen in the dropdown list. So I use the bizobj for the categories table as parent and the bizobj for the items table as child bizobj.
I don't think the way to populate the list shown in the wiki is the right way for this case (or is it?). I tried simply to create the dropdown list like this: dl = dabo.ui.dDropdownList(pn, DataSource="rubrik", DataField="rub_name") dl.ValueMode = "String" But that doesn't work. When I open the application, I get this: Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/wx-2.8-gtk2-unicode/wx/_misc.py", line 1342, in Notify self.notify() File "/usr/lib/python2.6/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 14676, in Notify self.result = self.callable(*self.args, **self.kwargs) File "/home/sib/svn_src/dabo_trunk/dabo/ui/uiwx/dForm.py", line 123, in __update super(BaseForm, self).update() File "/home/sib/svn_src/dabo_trunk/dabo/ui/uiwx/dPemMixin.py", line 1244, in update self.raiseEvent(dEvents.Update) File "/home/sib/svn_src/dabo_trunk/dabo/ui/uiwx/dPemMixin.py", line 949, in raiseEvent super(dPemMixin, self).raiseEvent(eventClass, nativeEvent, *args, **kwargs) File "/home/sib/svn_src/dabo_trunk/dabo/lib/eventMixin.py", line 93, in raiseEvent bindingFunction(event) File "/home/sib/svn_src/dabo_trunk/dabo/ui/uiwx/dPemMixin.py", line 1225, in __onUpdate self.update() File "/home/sib/svn_src/dabo_trunk/dabo/ui/uiwx/dPemMixin.py", line 1244, in update self.raiseEvent(dEvents.Update) File "/home/sib/svn_src/dabo_trunk/dabo/ui/uiwx/dPemMixin.py", line 949, in raiseEvent super(dPemMixin, self).raiseEvent(eventClass, nativeEvent, *args, **kwargs) File "/home/sib/svn_src/dabo_trunk/dabo/lib/eventMixin.py", line 93, in raiseEvent bindingFunction(event) File "/home/sib/svn_src/dabo_trunk/dabo/ui/uiwx/dPemMixin.py", line 1225, in __onUpdate self.update() File "/home/sib/svn_src/dabo_trunk/dabo/ui/dDataControlMixinBase.py", line 97, in update self.__dataUpdate() File "/home/sib/svn_src/dabo_trunk/dabo/ui/dDataControlMixinBase.py", line 114, in __dataUpdate self.Value = src.getFieldVal(self.DataField) File "/home/sib/svn_src/dabo_trunk/dabo/ui/uiwx/dControlItemMixin.py", line 382, in _setValue self.StringValue = value File "/home/sib/svn_src/dabo_trunk/dabo/ui/uiwx/dControlItemMixin.py", line 356, in _setStringValue raise ValueError(_("String must be present in the choices.")) ValueError: String must be present in the choices. So how to do this? Thanks for pushes in the right direction, Sibylle -- Sibylle Koczian _______________________________________________ Post Messages to: Dabo-users@leafe.com 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/4a0699c8.8090...@t-online.de