Hi All,
The Event tfield onChange is fired when we update a record but not fired when we reset it to old value
( ex cancelUpdate or simply cancel ) . Can we change this behavior? I use cachedUpdate
Med
tfieldOnchage
-
- Platinum Boarder
- Posts: 1956
- Joined: 17.01.2011, 14:17
Re: tfieldOnchage
Hello Med,
no - changing that behavior is not possible because with MSEide we use the TFields from MSEide. Also we need to keep synchronized in behavior with Delphi and FPC. Please use AfterCancel for your calculations. For CancelUpdates you alredy know what you do and so can call your recalculation method right afterwards.
Best regards,
Jan
no - changing that behavior is not possible because with MSEide we use the TFields from MSEide. Also we need to keep synchronized in behavior with Delphi and FPC. Please use AfterCancel for your calculations. For CancelUpdates you alredy know what you do and so can call your recalculation method right afterwards.
Best regards,
Jan
Re: tfieldOnchage
Hi Jan
This is annoying and a shame because onsettext event gives us the customdaaedit concerned. We do not have to scan all fields where oldvalue<>newvalue ?
Anywhay thank you for your orientation.
Med
This is annoying and a shame because onsettext event gives us the customdaaedit concerned. We do not have to scan all fields where oldvalue<>newvalue ?
Anywhay thank you for your orientation.
Med
-
- Platinum Boarder
- Posts: 1956
- Joined: 17.01.2011, 14:17
Re: tfieldOnchage
Hello Med,
the behavior you want to see changed is part of the FPC TDataSet comnponent. We cannot change it in Zeos.
With best regards,
Jan
the behavior you want to see changed is part of the FPC TDataSet comnponent. We cannot change it in Zeos.
I am not sure, what you mean. You might want to consider keeping the old value (BeforeEdit) and reuse that value inf the edit of the current row gets cancelled (OnCancel).
With best regards,
Jan