Skip to content

Create event in the codeunit 5407 "Prod. Order Status Management" in local procedure ShowReleasedProdOrderDocument #30100

@Babul2910

Description

@Babul2910

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    missing-infoThe issue misses information that prevents it from completion.

    Type

    No fields configured for Task.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions