On Tuesday 17 April 2007 08:32, Ed Leafe wrote:
> On Apr 17, 2007, at 11:09 AM, johnf wrote:
> > If I understand,  I retrieve the last PK if  AutoPopulatePK=True?
> > What if no
> > insert has occurred?  Can I depend on a bizobj having the PK
> > identified?
>
>       John, do you know what code we are discussing? This is the code that
> is fired *after* a successful insert when the developer has specified
> that the database will generate PKs.
>
> -- Ed Leafe
> -- http://leafe.com
> -- http://dabodev.com
Well I didn't understand that it had to be successful - which was my point 
about if no insert occurred.  

I'll assume that insert occurred.  So now I want to retrieve the last PK used 
for my current session.  I know the bizobj but does the PK have to be 
identified as in bizobj.KeyField = "pkid".  dbPostgres.py identifies the PK 
field in getfields() but I don't see where I can access the info from the 
app?  Or does getPK() return the information based on the cursor and not the 
bizobj.



-- 
John Fabiani


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

Reply via email to