Atozed Forums
Intraweb 15 bug: event SetText never triggered - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: Intraweb 15 bug: event SetText never triggered (/thread-2443.html)



Intraweb 15 bug: event SetText never triggered - ScottB - 06-29-2021

Hi,



After upgrading from IntraWeb 14 to IntraWeb 15.2.25/15.2.30 and 15.2.31 we encountered an (for us critical) issue with IWDBEdit controls. The SetText event is no longer triggered when the value is set. We traced the bug to the IWDBStdCtrls unit in the procedure TIWDBEdit.SetValue(const AValue: string) as shown in the image (diff between left: IW14.1.14 and right: IW15.2.31).



The fix is to change the marked line to: LField.Text := LValue;


Can this be fixed in the next release?




Regards,

Scott


RE: Intraweb 15 bug: event SetText never triggered - Alexandre Machado - 07-01-2021

Do you mean SetText of the underlying TField object?


RE: Intraweb 15 bug: event SetText never triggered - ScottB - 07-02-2021

(07-01-2021, 10:25 PM)Alexandre Machado Wrote: Do you mean SetText of the underlying TField object?

Yes, that is correct.


RE: Intraweb 15 bug: event SetText never triggered - Alexandre Machado - 07-02-2021

HI Scott,

this has been fixed and will be available soon in a new update.

Thanks for your report


RE: Intraweb 15 bug: event SetText never triggered - ScottB - 07-05-2021

(07-02-2021, 11:53 PM)Alexandre Machado Wrote: HI Scott,

this has been fixed and will be available soon in a new update.

Thanks for your report

Hi Alexandre,

That would be great, thanks!
However, I did find another possible issue related to datasets in IW15 that I'm not able to pinpoint yet. Will file another report when that becomes clear.

Thanks,
Scott


RE: Intraweb 15 bug: event SetText never triggered - ScottB - 07-06-2021

Hi Alexandre,

Another issue within the same IW15 code is that the field is cleared when the value is an empty string. The text is not set in that case, so again the SetText event is not triggered when the value in a control is emptied by the user. I fixed this issue so that it always executes LField.Text := LValue, before the LField.Clear is executed. There might be a better way to do this, I'm not sure, but this works for us.

Regards,
Scott


RE: Intraweb 15 bug: event SetText never triggered - Alexandre Machado - 07-09-2021

I'm not sure SetText should be triggered in this case. I'll do some investigation and let you know


RE: Intraweb 15 bug: event SetText never triggered - Alexandre Machado - 07-15-2021

This fix will be included in the next release.
Thanks