ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Report 99001043 Exchange Production BOM Item - Trigger OnPreReport - OnAfterCheckParameters

Open mavohra opened this issue 1 year ago • 1 comments

Describe the request

Please add an Event OnAfterCheckParameters in trigger OnPreReport, at the end of CheckParameters() procedure. It is in Report 99001043 "Exchange Production BOM Item"

local procedure CheckParameters()
   var
       IsHandled: Boolean;
   begin
       IsHandled := false;
       OnBeforeCheckParameters(StartingDate, FromBOMType, FromBOMNo, ToBOMType, ToBOMNo, IsHandled);
       if IsHandled then
           exit;

       if StartingDate = 0D then
           Error(Text000);

       if FromBOMType = FromBOMType::" " then
           Error(Text001);

       if FromBOMNo = '' then
           Error(Text002);

       if (FromBOMType = ToBOMType) and (FromBOMNo = ToBOMNo) then
           Error(ItemBOMExchangeErr, FromBOMType, FromBOMNo, ToBOMType, ToBOMNo);
   end;
    OnAfterCheckParameters(FromBOMType, ToBOMType, FromBOMNo, ToBOMNo); // <------ NEW EVENT
[IntegrationEvent(false, false)]
local procedure OnAfterCheckParameters(var FromBOMType: Enum "BOM Type"; var ToBOMType: Enum "BOM Type"; var FromBOMNo: Code[20]; var ToBOMNo: Code[20])
begin
end;

Additional context

I want this event so that i can add my customization AFTER the checkparameter procedure is called. Internal work item: AB#559831

mavohra avatar Dec 05 '24 09:12 mavohra

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: 27959.

JesperSchulz avatar Dec 12 '24 06:12 JesperSchulz