Page 1 of 1
tfieldOnchage
Posted: 27.07.2021, 10:46
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
Re: tfieldOnchage
Posted: 28.07.2021, 08:47
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
Re: tfieldOnchage
Posted: 19.07.2023, 18:58
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
Re: tfieldOnchage
Posted: 24.07.2023, 10:26
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