ALAppExtensions
ALAppExtensions copied to clipboard
[Event Request + Requests for External] Table 11401 CBG Statement Line - OnBeforeAccountNoOnValidate
Since we have quite some customizations interwoven with the standard code, we would like to request an event (compliant to the IsHandled-pattern) to be able to skip the OnValidate-trigger of field "Account No.".
field(13; "Account No."; Code[20])
{
Caption = ...
trigger OnValidate()
var
...
**IsHandled: Boolean; // <<New local var>>**
begin
**// <<Start new code
IsHandled := false;
OnBeforeAccountNoOnValidate(Rec, xRec, IsHandled);
if IsHandled then
exit;
// >>End new code**
...
end;
}
**// <<Start new event
[IntegrationEvent(false, false)]
local procedure OnBeforeAccountNoOnValidate(var CBGStatementLine: Record "CBG Statement Line"; var xCBGStatementLine: Record "CBG Statement Line"; var IsHandled: Boolean);
begin
end;
// >>End new event**
In order to be able to copy (parts of) the standard code to the TableExt, we also need the following modifications:
- Procedure "DeleteAppliesToID" needs to be modified from local to protected; and
- Procedure "GetCBGStatementHeader" needs to have [Scope('OnPrem')] removed.
Thanks in advance!
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.
Build ID: 44168.