On Friday 19 February 2010 12:47:48 pm Nate Lowrie wrote:
> Is there an easy way to figure out if a field in the current bizobj
> record has changed?
> 
> Regards,
> 
> Nate


Try this 
def showchanges(self, biz=None):

        if biz is None:
            biz=self.PrimaryBizobj

        pkexp='pkid'
        changes=[]
        chg=biz._CurrentCursor._mementos
        chglist=[]

        for chgrec in chg:
            chg1=chg[chgrec].copy()
            chg1['Table']=biz.DataSource
            chg1[pkexp]=chgrec

            changes.append(chg1)

        ret={}  

        bizlist=biz.getChildren()

        for child in bizlist:
            ret = self.showchanges(child)
            if ret:     
                changes.append(ret)     

        return changes

You can thank Larry

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]

Reply via email to