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
In Table 36, please include the OnBeforeValidateCustomerDiscGroup event within the OnValidate trigger of the "Customer Disc. Group" field.
Actual Code:
trigger OnValidate()
begin
TestStatusOpen();
MessageIfSalesLinesExist(FieldCaption("Customer Disc. Group"));
end;
Required Code with a new event request:
trigger OnValidate()
var
IsHandled: Boolean;
begin
IsHandled := false;
OnBeforeValidateCustomerDiscGroup(Rec, xRec, CurrFieldNo, IsHandled);
if IsHandled then
exit;
TestStatusOpen();
MessageIfSalesLinesExist(FieldCaption("Customer Disc. Group"));
end;
[IntegrationEvent(false, false)]
local procedure OnBeforeValidateCustomerDiscGroup(var SalesHeader: Record "Sales Header"; xSalesHeader: Record "Sales Header"; CurrentFieldNo: Integer; var IsHandled: Boolean)
begin
end;
Additional context
This new event is necessary to enable subscription for implementing custom code and to provide the option to bypass the base code when needed.
Internal work item: AB#558865
The text was updated successfully, but these errors were encountered:
Describe the request
In Table 36, please include the OnBeforeValidateCustomerDiscGroup event within the OnValidate trigger of the "Customer Disc. Group" field.
Actual Code:
trigger OnValidate()
begin
TestStatusOpen();
MessageIfSalesLinesExist(FieldCaption("Customer Disc. Group"));
end;
Required Code with a new event request:
trigger OnValidate()
var
IsHandled: Boolean;
begin
IsHandled := false;
OnBeforeValidateCustomerDiscGroup(Rec, xRec, CurrFieldNo, IsHandled);
if IsHandled then
exit;
TestStatusOpen();
MessageIfSalesLinesExist(FieldCaption("Customer Disc. Group"));
end;
[IntegrationEvent(false, false)]
local procedure OnBeforeValidateCustomerDiscGroup(var SalesHeader: Record "Sales Header"; xSalesHeader: Record "Sales Header"; CurrentFieldNo: Integer; var IsHandled: Boolean)
begin
end;
Additional context
This new event is necessary to enable subscription for implementing custom code and to provide the option to bypass the base code when needed.
Internal work item: AB#558865
The text was updated successfully, but these errors were encountered: