On Thursday 20 May 2010 06:32:56 am Carey Gagnon wrote:
> Being n00b to python and dabo I want to verify that I understand dabo
> datasets. The wiki states that the getDataSet() function will return a
> tuple of dictionaries.
>
> Given a database with the following fields:
> firstname lastname age
>
> With the following data:
> Tom Dick 54
> Harry Tom 32
> Dick Harry 23
>
> Will return the following tuple of dictionaries:
> ('{"firstname":"Tom", "lastname":"Dick", "age":"54"}',
> '{"firstname":"Harry", "lastname":"Tom", "age":"32"}',
> '{"firstname":"Dick", "lastname":"Harry", "age":"23"}')
>
>
> Do I understand correctly?
>
> Thanks
> Carey
Yes.
Because you are a newbie - I'd like to add that the above assumes that you
have issued a 'requery()' for the table or form, and the table is defined as
a bizobject. In other words just coding a "getDataSet()" will not retrieved
data without you coding a few other things.
In general
1. define the bizobject
2. request data by requery() - this is the SQL statement
3.getDataSet()
Johnf
_______________________________________________
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]