Re: [dabo-users] Very Simple dropdownlist

Author: Carey Gagnon

Posted: 2009-07-13 at 09:50:45

Ed / Larry;

Thanks for your assistance. I still haven't got it working.

I'm not sure what goes in the bizobj and what goes in the form, but I don't

want to be spoon fed either. can't learn anything that way.

I will play with what you guys have given me as time permits and see what

happen.

Thank again for your time, and I'll post back my results later.

Thanks

Carey

On Sun, Jul 12, 2009 at 8:35 PM, <lalong1@charter.net> wrote:

> Carey,

>

> Sorry, my carriage returns didn't go thru....

>

> statesdropdown =3D dabo.ui.dDropdownList(self,DataSource =3D ClientBizobj=

,

> DataField =3D "stateprov")

>

> choices =3D []

> keys =3D {}

> for location in locations:

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

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

>

> statesdropdown.Choices =3D choices

> statesdropdown.Keys =3D keys

> statesdropdown.ValueMode =3D "key"

>

> Larry

>

>

>

>

[excessive quoting removed by server]

©2009 Carey Gagnon