On Apr 1, 2010, at 9:02 PM, Steve Rose wrote:
> After modifying the following lines of the tutorial code, I was finally able
> to make the dropdownlist display its data correctly.
> Here are the changes I made to the afterInitAll method to get it work:
>
> def afterInitAll(self):
> ###clientBiz = self.getBizobj("clients")
> clientBiz = self.Form.getBizobj("clients")
>
> names, keys = clientBiz.getNamesAndKeys()
> ###self.ClientList.Choices = names
> self.Choices = names
> ###self.ClientList.Keys = keys
> self.Keys = keys
> ###self.ClientList.ValueMode = "Key"
> self.ValueMode = "Key"
The tutorial has this in the form's afterInitAll(), not the dropdown's.
That's the only reason you had to change the references.
> Now on to the next section. The tutorial has been excellent up to this
> point, by the way.
Glad to hear it! Please let us know of any part that is either unclear
or not working correctly.
-- Ed Leafe
_______________________________________________
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]