I would like to handle the Whse. Report Selection insert with my own business logic. Therefore, I request the following event:
procedure InsertReportSelectionWhse(ReportUsage: Enum "Report Selection Warehouse Usage"; Sequence: Code[10]; ReportID: Integer)
var
ReportSelectionWhse: Record "Report Selection Warehouse";
// NEW BEGIN
IsHandled: Boolean;
begin
IsHandled := false;
OnBeforeInsertRepSelectionWhse(ReportUsage, Sequence, ReportID, IsHandled);
if IsHandled then
exit;
// NEW END
if not ReportSelectionWhse.Get(ReportUsage, Sequence) then begin
ReportSelectionWhse.Init();
ReportSelectionWhse.Usage := ReportUsage;
ReportSelectionWhse.Sequence := Sequence;
ReportSelectionWhse."Report ID" := ReportID;
ReportSelectionWhse.Insert();
end;
end;
[IntegrationEvent(false, false)]
local procedure OnBeforeInsertRepSelectionWhse(ReportUsage: Integer; Sequence: Code[10]; ReportID: Integer; var IsHandled: Boolean)
begin
end;
Additional context
When a Whse. Report Selection record is found, I want to modify the ReportID.
Internal work item: AB#544385
Describe the request
I would like to handle the Whse. Report Selection insert with my own business logic. Therefore, I request the following event:
Additional context
When a Whse. Report Selection record is found, I want to modify the ReportID. Internal work item: AB#544385