Since version 17.02 we encounter peculiar behavior when selecting dates via the DatePicker. After selecting a date via the date picker, the OnValidate is no longer triggered when manually selecting another field by clicking on it, rather than using the Tab key. It looks like this behavior only happens when data is entered in a page of type list.
I have created a project like below to reproduce the problem.
- Create a table with at least one Date field (or use existing table), and some other fields.
- Create a page of type List for this table.
Table 50000 DatePickerTest
{
fields{
field(10;PK;Integer)
{
AutoIncrement = true;
}
field(20; "Start Date"; Date)
{
trigger OnValidate()
begin
Message('Start Date OnValidate');
end;
}
field(30; "End Date"; Date){}
field(40; Description; Text[50]){}
}
}
Page 50006 DatePickerTestCard
{
SourceTable = DatePickerTest;
PageType = Card;
layout{
area(Content)
{
field("Start Date";"Start Date"){}
field("End Date";"End Date"){}
field(Description;Description){}
}
}
}
Page 50007 DatePickerList
{
SourceTable = DatePickerTest;
PageType = List;
Editable = true;
CardPageId = DatePickerTestCard;
layout{
area(Content)
{
repeater(ListRepeater)
{
Field("Start Date";"Start Date"){}
Field("End Date";"End Date"){}
Field(Description;Description){}
}
}
}
}
To reproduce
- Select a random date by using the Date Picker.

- After the value is inserted into the field, jump to another field by clicking on it (tab key will correctly triggers OnValidate).
Enter some data.

- Note that no Message is shown defined in the OnValidate-trigger.
- Jump to a new row, and note that peculiar behavior occurs.

Expected behavior:
The OnValidate- trigger should always be triggered when a value is entered in the date field.
Since version 17.02 we encounter peculiar behavior when selecting dates via the DatePicker. After selecting a date via the date picker, the OnValidate is no longer triggered when manually selecting another field by clicking on it, rather than using the Tab key. It looks like this behavior only happens when data is entered in a page of type list.
I have created a project like below to reproduce the problem.
To reproduce
Enter some data.
Expected behavior:
The OnValidate- trigger should always be triggered when a value is entered in the date field.