Thanks for pointing out the typo in my debugging.  Now I can see that the
form knows about the clientBizobj.  I  cut and pasted in the code from the
tutorial for the afterInitAll of the dropdownlist and also the
getNamesAndValues method for the ClientBizobj.  When run, the form opened
with all controls displaying the correct data except the dropdown, which
displayed no data.

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"

Now on to the next section.  The tutorial has been excellent up to this
point, by the way.
Thanks,
Steve Rose


--- 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