Re: [dabo-users] vfp CA & dabo

Author: Vineet Deodhar

Posted: 2012-02-16 at 03:08:36

On Thu, Feb 16, 2012 at 10:42 AM, Adrian Klaver <adrian.klaver@gmail.com>wrote:

> On Wednesday, February 15, 2012 8:09:29 pm Vineet Deodhar wrote:

> > On Wed, Feb 15, 2012 at 10:15 PM, Adrian Klaver

> <adrian.klaver@gmail.com>wrote:

> > >

> > > Why can't you just use the save() or saveAll() methods of dBizobj?:

> > >

> > >

> http://paul.dabodev.com/doc/**api/dabodoc/dabo.biz.dBizobj.**dBizobj.html

> > > <http://paul.dabodev.com/doc/api/dabodoc/dabo.biz.dBizobj.dBizobj.html

> >

> > >

> > > Adrian Klaver

> > > adrian.klaver@gmail.com

> >

> > Adrian,

> > I am using save() method.

> > The matter is that, before calling save(), I must call new() +

> > setFieldVal() on appended record(s) ;

> > For updated records, seek() + setFieldVal().

> >

> > If I were using UI layer, I think this can be taken care of by dabo

> > automatically (pl. correct me if I am wrong).

> > Since I am using just biz & db layers, I need to identify the appended

> > records & updated records myself.

> > Then call save() on parent bizobj.

>

>

> You might want to spend some time at the link I gave previously and look

> through

> the various properties and methods associated with a bizobj. Two that come

> to

> mind right of the top of head, that would seem to serve your purpose are

> getChangedStatus() and getDataDiff(). Also look at SaveNewUnchanged

> property.

> The UI layer does a lot of its data work by reaching down to the biz layer

> anyway, so I think you find what need in bizobj.

>

> -

> Adrian Klaver

>

>

Thanks Adrian.

Let me dive deep into the links given by you.

-- Vineet

--- StripMime Report -- processed MIME parts ---

multipart/alternative

text/plain (text body -- kept)

text/html

---

_______________________________________________

Post Messages to: Dabo-users@leafe.com

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/CAP5=7ooyKmSVkxorrh7RnfpLrj+ZRJBQ8NSv2Y+z_h3mSw4nvQ@mail.gmail.com

©2012 Vineet Deodhar