Hi,

In many of my dropdown's I only have to populate the Choices and Keys once.  
IOW's the data is static.

But I have discovered when I need to dynamicly populate dropdowns or lists I 
need to subclass the dropdowns and provide my own update() - else I will run 
into the dreaded value not in the selection. Something like below.

class ContactDropDown(dabo.ui.dDropdownList):
    def update(self):
        self.Clear()
        self.Choices,self.Keys = self.Form.contactChoices()
        self.super()

First is this the best way to handle the situation where I need to populate 
dynamic dropdowns?  Second I wonder if something should be added to Framework 
to handle situations like I have described.  I'm not sure how.  But I believe 
it happens often to many.

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