Thanks Paul and thanks John,
I did a test with a dTextBox bind to my table VerbesOc coming from
Sqlite' s base with the DataSource "VerbesOc" and DataField "verbeNom".
I modificated the name of the verb directly. I understand now the
difference between the programmation to load the dListBox in
afterInitAll's fonction and the logic of DataSource and DataField to
manage directly the datas.
Thanks a lot. Dabo is very pleasant,
Regards
Bruno
Le 17/02/2011 18:52, Paul McNett a écrit :
> On 2/17/11 5:27 AM, bruno gallart wrote:
>> Hi all,
>>
>> I am trying Dabo and it is very interesting.
>> I made a test with sqlite's base and one table. I did a form with
>> dListBox (LtVerbesOc) that loads the records coming from a table named
>> VerbesOc. I have followed the help,
>>
>> create a connexion etc...and write the initAll's fonction like this
>>
>> def afterInitAll(self):
>> verbesBiz = self.getBizobj("VerbesOc")
>>
>> verbes, keys = verbesBiz.chargeLtVerbesOc()
>> self.LtVerbesOc.Choices = verbes
>> self.LtVerbesOc.Keys = keys
>> self.LtVerbesOc.ValueMode = "Key"
>> self.requery()
>> All works fine but i saw that there are in the dListBox's proprieties,
>> a DataSource' propriety and DataFied's propriety. In my test this
>> informations are blank and all works fine.
>>
>> My question:
>> There is a another way to load my sqlite's table VerbesOc directly in my
>> sListBox in informing DataSource and Datafield without the little
>> program in afterInitAll(). In fact, more automaticaly ?
>>
>> I hope you understand my bad english sorry for this,
> Welcome, and congratulations for doing Dabo just right! DataSource and
> DataField
> bind the control to the bizobj to get/set the data. For dListBox though,
> DataSource
> and DataField refer to the *actively selected row in the listbox*, and
> determine the
> value in the parent table, not the value in whatever table generated the list
> of
> possible values.
>
> I hope this makes sense.
>
> Paul
>
> _______________________________________________
> 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]
>
_______________________________________________
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]