ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Table 5051 "Contact Alt. Address" - OnBeforeValidatePostCode

Open EvaCegeka opened this issue 4 years ago • 1 comments

Hello,

We would like to request the following event in the OnValidate trigger of the Post Code field on table 5051 "Contact Alt. Address".

trigger OnValidate()
var
     IsHandled: Boolean;
begin
     IsHandled := false;
     OnBeforeValidatePostCode(Rec, IsHandled);
     if not IsHandled then
        PostCode.ValidatePostCode(City, "Post Code", County, "Country/Region Code", (CurrFieldNo <> 0) and GuiAllowed);
end;
[IntegrationEvent(false, false)]
local procedure OnBeforeValidatePostCode(var ContactAltAddress: Record "Contact Alt. Address"; var IsHandled: Boolean)
begin
end;

In our solution there are some situations in which the ValidatePostCode check should not occur. Thank you in advance for your consideration.

EvaCegeka avatar Feb 08 '22 11:02 EvaCegeka

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.

JesperSchulz avatar Feb 11 '22 09:02 JesperSchulz