Icon View Incident Report

Serious Serious
Reported By: Walter Matte
Reported On: 7/28/2017
For: Version 2.06 Build 5
# 4572 TDataColumn OnGetText Event Handler is Triggered at Inappropriate Times

I am loading a dataset with 16 records - each of them have a date that I want to display in my own format.  In the DataSet Field on GetText event I reformat.

The StrToDate function was giving me an error - then I debugged and realized empty values were being passed to the routine - so I have a work around.  But should this be happening?

I logged to a list box and found the blanks.   (See attached).   7 times the event is called with blank value....

function TfrmTime.TimeDetWorkDateGetText(Sender: TObject; const Value: String): String;
 DT : DateTime;
 ListBox1.Items.Add('>' + Value + '<');

 if value > '' then
   DT := StrToDate(value);
   result := DisplayDate(DT,1);
   result := value;

Comments Comments and Workarounds
The event handler was getting triggered in cases where a) the dataset was closed, and b) the dataset was empty. The workaround was as-described in the report (checking for blank value).

Resolution Resolution
Fixed Problem on 8/2/2017 in version 2.06 build 6

Products Affected Products Affected
Elevate Web Builder
Elevate Web Builder Trial