On Tuesday 19 August 2008 11:10:56 am Uwe Grauer wrote:

>
> It's too easy to create a specialized class for that purpose.
> So no, i don't think that a generalized dropdownlist fits into the
> framework (Dabo). Of cause if i would need it too often i would already
> have such a dropdownlist class. Instead i put effort into were the
> display data comes from.
>
> There are too many ways to manage the list data.
> To fill the data i'm using a 2-liner:
> choices, keys = self.Form.enumBiz.getEnumsByToken('e_sex')
> sexbox = dabo.ui.dComboBox(self, DataSource="JNP", DataField="e_sex",
>
>                            Choices=choices, Keys=keys, ValueMode='Key')
>
> The real work went into getEnumsByToken() and the underlying data
> structure.
>
> Uwe

How about showing "getEnumsByToken"?  

I ask because I bet you are just getting a dataset and then doing the massage 
to return choices and keys.  And I bet this happens all the time.  Why not a 
simple way to use dataset directly.  



-- 
John Fabiani


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]

Reply via email to