No Joy

I'm trying to follow this forum thread as it seems exactly what I need:
http://old.nabble.com/Delivered-Second-Project%21-tp29188888p29192380.html

And here's what Paul suggests:

How about, in frmPolicies:

class FrmPolicies(dabo.ui.dForm):
   ...
   def afterInit(self):
     self.bind(dabo.dEvents.Activate, self.*onActivate*)
     ...

   def *onActivate*(self, evt):
     print "form activate"
     self.refreshAgents()

   def refreshAgents(self):
     bizAgents = self.getBizobj("agents")
     bizAgents.requery()
     dsAgents = bizAgents.getDataSet(flds=("id", "name"))
     lstAgents = self.lstAgents  ## ('cuz you named it's RegID that way)
     lstAgents.Choices = [rec["name"] for rec in dsAgents]
     lstAgents.Keys = [rec["id"] for rec in dsAgents]

I have given the builders dropdownlisy a RegID of ddBuilders
but when I call it I get the following:
    self.refreshBuilders()
  File "c:\docume~1\admini~1\locals~1\temp\tmpjlhmhu.py", line 565, in
refreshBuilders
    ddBuilders = self.ddBuilders
AttributeError: 'dForm_79565' object has no attribute 'ddBuilders'

Puals resolution here seem to be for hand coded forms but mine are done in
the CD

Carey


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