On Thu, Feb 16, 2012 at 10:42 AM, Adrian Klaver <[email protected]>wrote:
> On Wednesday, February 15, 2012 8:09:29 pm Vineet Deodhar wrote: > > On Wed, Feb 15, 2012 at 10:15 PM, Adrian Klaver > <[email protected]>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 > > > [email protected] > > > > 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: [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/CAP5=7ooykmsvkxorrh7rnfplrj+zrjbq8nsv2y+z_h3msw4...@mail.gmail.com
