Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 15 Next »

Use this event to

Add Steps to be displayed on 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 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".

To add steps to the "line" level at the mobile device, see: OnGetProdConsumptionLines_OnAddStepsToProdOrderComponent

Template

    [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;



More examples

  

Version History

VersionChanges
MOB5.22Introduced
  • No labels