Hello,
yes your're right in your assumption ..
you can only query the value with "SELECT theKeyField FROM yourTable" after the transaction has been submitted ..
but you can use this one instead:
TABLEUPDATE('yourView')
LOCAL lnConnection
lnConnection = CURSORGETPROP("ConnHandle","yourView")
SQLEXEC(lnConnection,'SELECT @@Identity AS NewKey','KeyCursor')
yourNewKey = KeyCursor.NewKey
error handling disregarded in this example ..
Regards
Christian
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only