ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] codeunit 905 "Assembly Line Management" - OnBeforeShowDueDateBeforeWorkDateMsg

Open xtiche opened this issue 1 year ago • 2 comments

Describe the request

codeunit 905 "Assembly Line Management"

...

    procedure ShowDueDateBeforeWorkDateMsg(ActualLineDueDate: Date)
    var
        IsHandled:Boolean;
    begin
        // new event >>
       OnBeforeShowDueDateBeforeWorkDateMsg(ActualLineDueDate,IsHandled);
        if IsHandled then
             exit;
        // new event <<
        if GuiAllowed then
            if GetWarningMode() then
                Message(Text005, ActualLineDueDate, WorkDate());
    end;


Additional context

The customer wants to hide this message based on InstructionMgt, please add an event to make it possible, or if you can do it, would be great :) Internal work item: AB#563453

xtiche avatar Jan 20 '25 15:01 xtiche

Please use procedure procedure SetWarningsOff for this purpose

AleksandricMarko avatar Jan 28 '25 11:01 AleksandricMarko

@AleksandricMarko but there is places in standard code, for example, action - "explode BOM", where I cannot set this global var as it use local variable

Image

And there is no event to use SetWarningsOff

xtiche avatar Jan 28 '25 15:01 xtiche