yea - Paul's solution does appear to be hand coded.  But I think you can
still

> do it from ClassDesigner by adding a method (like you have in the past).
>
> I can't recall the form names - but where you have the code for RegID =
> "ddBuilders" is where you have access (again dShell can be your friend).
>
> Johnf
>


Well, I don't kno if this is the right way to go about it but it works.
In my frmContacts-code initializes the dropdownlist:

## *!* ## Dabo Code ID: dDropdownList-dPanel
def afterInit(self):
    biz = self.Form.getBizobj("contacts")
    names, pks = biz.getBuilders()
    self.Choices = names
    self.Keys = pks
    self.ValueMode = "Key"

Then to update the list, after the code initialization above I put the
following:

def onGotFocus(self, evt):
    #print "form activate"
    self.refreshBuilders()


def refreshBuilders(self):
    bizBuilders = self.Form.getBizobj("contacts")
    bizBuilders.requery()
    names, pks = bizBuilders.getBuilders()
    self.Choices = names
    self.Keys = pks
    self.ValueMode = "Key"

Don't know if this is good practice or not, but it works.

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