Ed Leafe wrote:
> On Apr 26, 2007, at 11:36 AM, Carl Karsten wrote:
> 
>>> And if it really does, why not use getDataSet()?
>> http://dabodev.com/wiki/DataSet
>>
>> Um, because eve after reading
>> http://dabodev.com/wiki/DataSet
> 
>       getDataSet() != DataSet

fist line of code on that page:
custDS = customerBizobj.getDataSet()

Given that my code didn't work, does that code work?

> 
>> How would I use it?
> 
>       The same general approach applies:
> 
> http://dabodev.com/wiki/HowToPopulateAndUseListControls

So like this?

     # self.dbs = self.conn.cursor._records
     self.dbs = self.conn.cursor.getDataSet()

Better.  gets rid of the ._Attr reference.

Seems dabo.biz.dBizobj.getDataSet() should have also worked.  Looks like 
BO.getDataSet() just calls cursor.getDataSet().

Any idea why it didn't?

The docscrings should include what happens when rows=None (looks like all rows 
returned, but I am not sure what happens when you specify rowStart=5, 
rows=None.)

Carl K


         def getDataSet(self, flds=(), rowStart=0, rows=None):
                 """ Get the entire data set encapsulated in a list.

                 If the optional 'flds' parameter is given, the result set will 
be filtered
                 to only include the specified fields. rowStart specifies the 
starting row
                 to include, and rows is the number of rows to return.
                 """
                 ret = None
                 try:
                         cc = self._CurrentCursor
                 except:
                         cc = None
                 if cc is not None:
                         ret = self._CurrentCursor.getDataSet(flds, rowStart, 
rows)
                 return ret



         def getDataSet(self, flds=(), rowStart=0, rows=None, 
returnInternals=False):
                 """ Get the entire data set encapsulated in a dDataSet object.

                 If the optional 'flds' parameter is given, the result set will 
be filtered
                 to only include the specified fields. rowStart specifies the 
starting row
                 to include, and rows is the number of rows to return.
                 """



_______________________________________________
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/dabo-users/[EMAIL PROTECTED]

Reply via email to