Re: [dabo-users] something wrong with bizobj.moveToPK()

Author: John Fabiani

Posted: 2011-12-24 at 19:13:58

On Sunday, December 25, 2011 12:19:25 AM Jacek Kałucki wrote:

> Użytkownik Jacek Kałucki napisał:

> > What happens after saving it:

> > self.pwvoyage.save()

> >

> > self.pwvoyage.moveToPK(KeyValue)

> >

> > ?

>

> I reposted proper code on codepad: http://dabo.codepad.org/FV231hKP

Sorry no saving allowed - this is a read only screen (at least for now). My

code is to demo problem! The backend is Postgres 8.4. I happen to be using a

combo-box and the code is executed as the result of a selection. However, I

doubt the selection is the cause of the record data being incorrect. But

maybe the relationship has some influence. The code below is how the

relationship is setup:

self.pwvoyage = dataClass.WarehousepwvoyageBizobj(self.dean_conn)

self.pwvoyage.ParentLinkField = "pkid"

self.pwvoyage.LinkField = "fk_vesselid"

self.pwvoyage.FillLinkFromParent = True

self.addBizobj(self.pwvoyage)

self.pwvessel.addChild(self.pwvoyage)

Johnf

_______________________________________________

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/6079096.P4GvckMDE8@linux-12

©2011 John Fabiani