You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
field(Description; Rec.Description)
{
ApplicationArea = Suite;
ToolTip = 'Specifies a description of the entry, which is based on the contents of the Type and No. fields.';
trigger OnValidate()beginif Rec.Description = xRec.Description thenexit;
if Rec."No." = ''then
Rec.Type := Rec.Type::" ";
UpdateTypeText();
end;
}
New code:
field(Description; Rec.Description)
{
ApplicationArea = Suite;
ToolTip = 'Specifies a description of the entry, which is based on the contents of the Type and No. fields.';
trigger OnValidate()var
IsHandled: Boolean;
beginif Rec.Description = xRec.Description thenexit;
IsHandled := false;
OnValidateDescriptionOnBeforeChangeSalesLineType(Rec, IsHandled);
if IsHandled thenexit;
if Rec."No." = ''then
Rec.Type := Rec.Type::" ";
UpdateTypeText();
end;
}
Event:
[IntegrationEvent(false, false)]
localprocedure OnValidateDescriptionOnBeforeChangeSalesLineType(var StandardSalesLine: Record "Standard Sales Line"; var IsHandled: Boolean)beginend;
Additional context
When new "Sales Line Type" are added, they are overwritten if "No." is empty
The text was updated successfully, but these errors were encountered:
Describe the request
Please add new event:
Previous code:
New code:
Event:
Additional context
When new "Sales Line Type" are added, they are overwritten if "No." is empty
The text was updated successfully, but these errors were encountered: