Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

Use this event to

Excerpt

Add Steps to be displayed at the mobile device before posting (the Order).

Description

Header steps are executed...

  • after all lines have been registered at the mobile device, and "Post the order?" page was accepted.
  • when the mobile user manually select "Post".

From each production order multiple items may be produced (the "Production Order Lines"). Consequently "OnAddStepsToProdOrderLine" event - despite the naming - are for the "toplevel" in an OrderList/OrderLines page, elsewhere named the "OrderList"Collected values for Steps created from this event is best handled in the OnPostAssemblyOrder_OnBeforePostAssemblyOrder event.


To add steps to the "line" level at the mobile device, see:  WIP Assembly OnGetProdConsumptionLines_OnAddStepsToProdOrderComponent OnGetAssemblyOrderLines_OnAddStepsTo...

Template

    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Production ConsumptionMOB WMS Assembly", 'OnGetProdConsumptionLinesOnGetAssemblyOrderLines_OnAddStepsToProdOrderLineOnAddStepsToAssemblyHeader''', true, true)]
    local procedure OnGetProdConsumptionLines OnGetAssemblyOrderLines_OnAddStepsToProdOrderLineOnAddStepsToAssemblyHeader(_ProdOrderLineAssemblyHeaderRecord "Prod. Order LineAssembly Header"; var _Steps: Record "MOB Steps Element")
    begin
    end;

Example

        // [Example]  Display information step and new step for forecast assembly time data collection
    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Production ConsumptionMOB WMS Assembly", 'OnGetProdConsumptionLinesOnGetAssemblyOrderLines_OnAddStepsToProdOrderLineOnAddStepsToAssemblyHeader''', true, true)]
    local procedure MyOnGetProdConsumptionLines MyOnGetAssemblyOrderLines_OnAddStepsToProdOrderLineOnAddStepsToAssemblyHeader(_ProdOrderLineAssemblyHeaderRecord "Prod. Order LineAssembly Header"; var _Steps: Record "MOB Steps Element")
    begin
        _Steps.Create_InformationStep(
            10000,                                                                                          // Id
             'MyInformationStep',                                                                            // name
            'New Information',                                                                              // header
            '',                                                                                             // label
            'Time used for scanning consumption should now be registered as output RunTime.');              // helpLabel);
        _Steps.Set_header('New Information');
        _Steps.Set_helpLabel('We are updating our Assembly BOMs to include Resources. To assist this please record the exact time used for the assembly in the next step.');


        _Steps
.Create_IntegerStep(20000'MyAssemblyTimeStep');
        _Steps.Set_header('Assembly Time (Minutes)');
        _Steps.Set_helpLabel('Total incl. setup (min. 1 minute)');
        _Steps.Set_minValue(1);
    end;



Filter by label (Content by label)
showLabelsfalse
showSpacefalse
sorttitle
titleMore examples
excerptTypesimple
cqllabel = "bc" and label = " production" and label = "example" and label = "onaddsteps"

  

Version History

VersionChanges
MOB5.2224Introduced