tfieldOnchage

The forum for ZeosLib 7.2 Report problems. Ask for help, post proposals for the new version and Zeoslib 7.2 features here. This is a forum that will be edited once the 7.2.x version goes into RC/stable!!

My personal intention for 7.2 is to speed up the internals as optimal a possible for all IDE's. Hope you can help?! Have fun with testing 7.2
Post Reply
medhome
Fresh Boarder
Fresh Boarder
Posts: 11
Joined: 18.07.2021, 14:07

tfieldOnchage

Post by medhome »

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
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1956
Joined: 17.01.2011, 14:17

Re: tfieldOnchage

Post by marsupilami »

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
medhome
Fresh Boarder
Fresh Boarder
Posts: 11
Joined: 18.07.2021, 14:07

Re: tfieldOnchage

Post by medhome »

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
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1956
Joined: 17.01.2011, 14:17

Re: tfieldOnchage

Post by marsupilami »

Hello Med,

the behavior you want to see changed is part of the FPC TDataSet comnponent. We cannot change it in Zeos.
medhome wrote: 19.07.2023, 18:58 This is annoying and a shame because onsettext event gives us the customdaaedit concerned.
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
Post Reply