Use this event to
Excerpt |
---|
Modify properties for any single step when registering Production Output Time. |
...
/// <param name="_RegistrationType">'ProdOutputTime' = Called from Adhoc Action; 'ProdOutput' = Called from element list by clicking the element</param>
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Adhoc Registr.", 'OnGetRegistrationConfigurationOnProdOutput_OnAfterAddStepToProductionOutputTime', '', true, true)]
localprocedure OnGetRegistrationConfigurationOnProdOutput_OnAfterAddStepToProductionOutputTime(_RegistrationType: Text; var _LookupResponse: Record "MOB NS WhseInquery Element"; var _Step: Record "MOB Steps Element")
begin
end;
Example - Hide SetupTime step when called from elements list by clicking the element (but must still be visible when called from Adhoc Action)
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Adhoc Registr.", 'OnGetRegistrationConfigurationOnProdOutput_OnAfterAddStepToProductionOutputTimeOnAfterAddStepToProductionOutputScrap', '', true, true)]
localprocedure MyOnGetRegistrationConfigurationOnProdOutput_OnAfterAddStepToProductionOutputTimeOnAfterAddStepToProductionOutputScrap(_RegistrationType: Text; var _LookupResponse: Record "MOB NS WhseInquery Element"; var _Step: Record "MOB Steps Element")
var
MobWmsToolbox: Codeunit "MOB WMS Toolbox";
begin
if (_RegistrationType = MobWmsToolbox."CONST::ProdOutput"()) and (_Step.Get_name() = 'SetupTime') then
_Step.Set_Visible('false');
end;
Filter by label (Content by label) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...