I'm getting an error when trying to apply updates to an inserted record. The error is "A lock refresh or check cannot be performed without a rowid. Provide a rowid in the query or handle this action in the OnApplyRecord event." My query does use a rowid.
My properties for the component are:
CachedUpdates := True
RefreshOptions := [roBeforeEdit]
LockingMode := lmCheckImmediate
The error message is displayed when running Session,ApplyUpdates([Dataset], True) and after the OnApplyRecord event has gone through and inserted the record and as it loops through to do a refresh. I'm actually not clear on why it is attempting to do a refresh here, based on my refresh options.
What am I doing wrong here? If you need more code samples, I'm happy to provide them.
Thank you!
My properties for the component are:
CachedUpdates := True
RefreshOptions := [roBeforeEdit]
LockingMode := lmCheckImmediate
The error message is displayed when running Session,ApplyUpdates([Dataset], True) and after the OnApplyRecord event has gone through and inserted the record and as it loops through to do a refresh. I'm actually not clear on why it is attempting to do a refresh here, based on my refresh options.
What am I doing wrong here? If you need more code samples, I'm happy to provide them.
Thank you!