Versions Compared

Key

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

Use this event to

...

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

Template

        [EventSubscriber(ObjectType::Codeunit,  Codeunit::"MOB WMS Production ConsumptionMOB WMS Production Consumption",  'OnGetProdConsumptionLines_OnAddStepsToProdOrderLine',  '',  truetrue,  truetrue)]
        local procedure OnGetProdConsumptionLines OnGetProdConsumptionLines_OnAddStepsToProdOrderLine(_ProdOrderLine:  Record  "Prod.  Order LineOrder Line";  var  _Steps:  Record  "MOB Steps ElementMOB Steps Element")
        begin
        end;

Example

    [EventSubscriber(ObjectType::Codeunit,  Codeunit::"MOB WMS Production ConsumptionMOB WMS Production Consumption",  'OnGetProdConsumptionLines_OnAddStepsToProdOrderLine',  '',  truetrue,  truetrue)]
        local procedure MyOnGetProdConsumptionLines MyOnGetProdConsumptionLines_OnAddStepsToProdOrderLine(_ProdOrderLine:  Record  "Prod.  Order LineOrder Line";  var  _Steps:  Record  "MOB Steps ElementMOB Steps Element")
        begin
                _Steps.Create_InformationStepDecimalStep(
            10000,                                                                                           // Id
            'MyInformationStep',                                                                   // name
            'New Information','CustomGrossWeightGrams');
        _Steps.Set_header('Gross Weight (Grams)');
        _Steps.Set_label('Gross Weight (Grams):');
                                                       // header
            '',                                                                                                  // label
            'Time used for scanning consumption should now be registered as output RunTime.');              // helpLabel
    _Steps.Set_helpLabel('Gross Weight in Grams per Base Unit of Measure');
        _Steps.Set_minValue(0);
        _Steps.Set_maxValue(100000);
        _Steps.Set_performCalculation(true);
    end;



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

...