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 on the mobile device before posting (the Orderthe 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 selects "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".

...

    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Production Consumption", 'OnGetProdConsumptionLines_OnAddStepsToProdOrderLine''', true, true)]
    local procedure OnGetProdConsumptionLines_OnAddStepsToProdOrderLine(_ProdOrderLine: Record "Prod. Order Line"; var _Steps: Record "MOB Steps Element")
    begin
    end;

Example

    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Production Consumption", 'OnGetProdConsumptionLines_OnAddStepsToProdOrderLine''', true, true)]
    local procedure MyOnGetProdConsumptionLines_OnAddStepsToProdOrderLine(_ProdOrderLine: Record "Prod. Order Line"; 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
    end;



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

...