Re: [dabo-users] Very Simple dropdownlist

Author: <lalong1@charter.net>

Posted: 2009-07-12 at 20:43:25

Carey,

Try something like this...

statesdropdown = dabo.ui.dDropdownList(self,DataSource = ClientBizobj,

DataField = "stateprov")

choices = []

keys = {}

for location in locations:

choices.append("%s" % (location['state']))

keys[location["iid"]] = len(choices) - 1

statesdropdown.Choices = choices

statesdropdown.Keys = keys

statesdropdown.ValueMode = "key"

HTH,

Larry

©2009 <lalong1@charter.net>