- Peter Klopfer
- PowerBuilder
- Monday, 16 December 2024 11:11 AM UTC
Hello,
I've a small data table with an identity field and an insert trigger saving the inserted values into a protocol table in another database.
In the datawindow, immediately after the insert the identity column doesn't contain the newly generated identity value of my table but the identity value of the protocol table. Another retrieve of the datawindow supplies the correct identity value.
My problem: I need the correct identity value immediately after the datawindow insert.
Here is what the trigger does: insert into <protocol table> (fieldlist>) select <fieldlist> from ##inserted
Thanks in advance for any hint.
Regards, Peter
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.