Why do you need this change?
Create new event called OnBeforeShowReleasedProdOrderDocument in the local procedure ShowReleasedProdOrderDocument
local procedure ShowReleasedProdOrderDocument(var ProdOrder: Record "Production Order")
var
NewProductionOrder: Record "Production Order";
IsHandled: Boolean;//New
begin
//New
OnBeforeShowReleasedProdOrderDocument(ProdOrder, IsHandled);
if IsHandled then
exit;
//New
if not Confirm(StrSubstNo(OpenReleasedProdOrderQst, ProdOrder."No.")) then
exit;
NewProductionOrder.Get(NewProductionOrder.Status::Released, ProdOrder."No.");
Page.Run(Page::"Released Production Order", NewProductionOrder);
end;
//New
[IntegrationEvent(false, false)]
local procedure OnBeforeShowReleasedProdOrderDocument(ProductionOrder: Record "Production Order"; var IsHandled: Boolean)
begin
end;
//New
Describe the request
We have created a new page based on the Production Order record. We require an event to open this custom page while preserving and applying the same filters as the standard page, along with the ability to handle or override the existing standard page behavior.
Why do you need this change?
Create new event called OnBeforeShowReleasedProdOrderDocument in the local procedure ShowReleasedProdOrderDocument
Describe the request
We have created a new page based on the Production Order record. We require an event to open this custom page while preserving and applying the same filters as the standard page, along with the ability to handle or override the existing standard page behavior.