Quantcast
Channel: Embarcadero Community - Embarcadero Community
Viewing all articles
Browse latest Browse all 3212

Use of OnReconcileErrorDialogBox in Berlin 10.1 with TFDQuery

$
0
0

Hi all. I appreciate my newbie status all too well when working with FireDac but having read the book (Delphi in Dept: ClientDataSets 2nd Edition by Cary Jensen) and having sweated over some code I feel I do have the T-Shirt now (enough) to be able to ask a question in this group.

I'm using a TFDConnection and TFDQuery to retrieve data from an in-house MS SQL database. The user is allowed to modify just one field (not any key field by the way) and I was trying to use CachedUpdates and the ApplyUpdates functions to save data back to the database and to advise the user if any of the data has been changed by other users. I am struggling with this and tried to use the OnReconcileErrorDialogBox unit added to my project to offer the user a ready made facility in which to compare the various values of data in their cache and remote SQL database.

However it would appear that this unit hasn't been written for the parameter types provided to the TFDQueryReconcileError method of UpdateKind - TFDDatSRowState or E - EFDException.

Has anyone else tried using this dialog box in this scenario or some variant of it that handles the parameters provided within TFDQueryReconcileError?

Many thanks and regards in advance

David


Viewing all articles
Browse latest Browse all 3212

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>