Thx!

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Ed Leafe
Sent: Monday, April 16, 2007 4:39 PM
To: Dabo Users list
Subject: Re: [dabo-users] Suggestions as to the best way to copy a record

On Apr 16, 2007, at 4:05 PM, <[EMAIL PROTECTED]>  
<[EMAIL PROTECTED]> wrote:

> Other than issuing a "insert into..." passthru sql to the back end  
> is there
> an easy way to copy a record from by bizobj (that I am currently  
> on) to a
> temp structure, then add it...like a scatter memvar, insert from  
> memvar in
> vfp?

        No, there isn't a direct way of doing this. You could do something  
like this in your bizobj:

rec = self.getDataSet(rowStart=self.RowNumber, rows=1)
self.new()
for fld, val in rec.items():
        if not fld == self.KeyField:
                self.setFieldVal(fld, val)
self.save()
        

-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com




[excessive quoting removed by server]

_______________________________________________
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/!&!AAAAAAAAAAAYAAAAAAAAAGnwNn52Lj1DjDRaSGJwREHCgAAAEAAAAGiW5OY/[EMAIL
 PROTECTED]

Reply via email to