This question is locked. New answers and comments are not allowed.
Hello All,
How do I find the identity based primary key value of a class before the transaction is committed?
The following used to work in older versions of open access but does not in the current release
scope.transaction.begin
dim NewClass as new PersistentClass
scope.add(NewClass)
dim oid=scope.GetObjectId(NewClass)
'the identity based id for the new record is now populated
dim Newid=NewClass.id
...
other code
...
scope.transaction.commit
Thanks,
Robert Gibbins.
How do I find the identity based primary key value of a class before the transaction is committed?
The following used to work in older versions of open access but does not in the current release
scope.transaction.begin
dim NewClass as new PersistentClass
scope.add(NewClass)
dim oid=scope.GetObjectId(NewClass)
'the identity based id for the new record is now populated
dim Newid=NewClass.id
...
other code
...
scope.transaction.commit
Thanks,
Robert Gibbins.