On 03/20/2014 12:03 PM, bruno wrote:
Hi,

I am playing with Dabo. I did some forms with grid and text area with basics of "CnxName" ," Datafield", "DataSource" and all works very fine. But I have seen that for exemple the "dListBox" has also one "DataSource" and one "DataField" area. I have tried to put there the name of my table and the name of my column I wanted but nothing was coming. I have tried many things but it is the same "no " result !

Somebody can said me if it is possible to load a dListBox with datas coming from the CnxName 's file and if yes how can I do this,

Thanks for your patience,

Regards,
Bruno
_______________________________________________

Listboxes (dDropdownlist is the easiest) work differently than the other controls. You can't simply provide a datasource and a field name and see the results. You have to populate the "Choices" paramenter.

Something like this.

dabo.ui.dDropdownList(self, ValueMode = 'string', Choices = ['one','two','three'] , Keys = [1,2,3], RegID = 'someID')

Of course you would normally retrieve the data from a datasource.

Note.  Try looking a script dDropdownList.py

Normally I would provide you with a link to the wiki - but it appears to be down.

Johnf
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.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