On Sat, Aug 1, 2009 at 9:26 PM, Ed Leafe<[email protected]> wrote:
> On Aug 1, 2009, at 3:22 PM, Miguel Lopes wrote:
>
>> Yes, but the question is if after
>> someBizobj.save(startTransaction=False) the Pk will be available
>> before the transaction is commited [ ...going out to test this ...]?
>
>
>        Is this a new, unsaved record? If the DB is generating your PKs, then
> no, the PK won't be available until it is saved, but doesn't have to
> be committed, as Dabo will fill it in after the save.

Yes.
someBizobj.new()
someBizobj.field_x = valuex
someBizobj.save(startTransaction=False)

pk = someBizobj.getPk()

Haven't tested yet.. in debugging!
Miguel

PS. regarding my particular case, I have to think a little on how to
best present it.
txs for all the help!


_______________________________________________
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