Canceling data change if data is not as it should be using TAureliusDataSet in XData Client Application

How can a data change be aborted in TAureliusDataset.OnBeforePost event?
In there, I check the data if it is as expected. If not an MessageBox is generated, but how can the change aborted, so it does nothing and only the MessageBox is shown?
I did not find an Abort method to do so. Calling Cancel does not do the job.

Thanx for helping

That's regular TDataset usage. You can use TField.OnValidate or simply raise an exception in OnBeforePost event.

Thanx. In the OnValidate event, there must be used an exception also. But the exception dialog is not as nice as a self created dialog box. But works. Feature request... :grinning:

1 Like

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.