LS,
I created a simple table and card page.
I would have expected the first visible field (First name) to receive focus, but in stead the field Preferred language receives focus.
Looking for an answer I found that D365BC now puts the focus on the first mandatory field, but the field Preferred language is not mandatory.
Setting ShowMandatory on the card page for the First name field didn't help as well.
The Table:
{
DataClassification = ToBeClassified;
{
field(1; RecordNumber; Integer)
{
AutoIncrement = true;
DataClassification = ToBeClassified;
}
{
Caption = 'First name';
DataClassification = ToBeClassified;
var
begin
FullName := FirstName + ' ' + LastName;
end;
}
{
Caption = 'Last name';
DataClassification = ToBeClassified;
var
begin
FullName := FirstName + ' ' + LastName;
end;
}
{
Caption = 'Full name';
DataClassification = ToBeClassified;
}
{
Caption = 'E-mail';
DataClassification = ToBeClassified;
}
{
Caption = 'Preferred language';
DataClassification = ToBeClassified;
TableRelation = AwsLanguage.ShortName;
}
{
Caption = 'Department';
DataClassification = ToBeClassified;
TableRelation = if (PreferredLanguage = const('NL'))
SelectionListNL.SelectionContent where(SelectionGroupName = Const('Department'), ApplicationName = Const('KIP'))
else
if (PreferredLanguage = const('DE'))
SelectionListDE.SelectionContent where(SelectionGroupName = Const('Department'), ApplicationName = Const('KIP'))
else
if (PreferredLanguage = const('EN'))
SelectionListEN.SelectionContent where(SelectionGroupName = Const('Department'), ApplicationName = Const('KIP'));
}
}
{
key(PK; RecordNumber, FullName, PreferredLanguage)
{
Clustered = true;
}
}
This is the card page:
{
PageType = Card;
ApplicationArea = All;
UsageCategory = Administration;
SourceTable = StaffNED;
{
area(Content)
{
group(General)
{
Caption = 'Naam:';
field(RecordNumber; RecordNumber)
{
ApplicationArea = Basic;
Importance = Promoted;
Visible = false;
}
{
ApplicationArea = Basic;
}
{
ApplicationArea = Basic;
}
{
ApplicationArea = Basic;
Editable = false;
}
group(etc)
{
Caption = 'Overige gegevens:';
field(Email; Email)
{
ApplicationArea = Basic;
}
{
ApplicationArea = Basic;
}
{
ApplicationArea = Basic;
}
}
}
}
}
How can I set the focus on the field First Name when the card page opens?
Kind regards,
Clemens Linders