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 when collecting values for each individual document line.

...

Line-level step are:

  • ..merged with existing workflow steps
  • ..declared as part of a collectorConfiguration-Key in of Reference Data.
  • ..added by calling the Create_StepsByReferenceDataKey-function (Currently only once)function 
  • ..sorted by Id. Sorting can be changed using the <orderLineConfiguration><extraInformationConfiguration stepSorting="ById"/><orderLineConfiguration/> in mobile configuration.

...


Template

...

Only one key per order line:

  • You can have multiple keys with different steps. But just one key can be assigned to a line.
  • So you might need to create multiple keys, for the unique combinations of steps you want to collect.


Template

    [EventSubscriber(ObjectType::Codeunit,  Codeunit::"MOB WMS CountMOB WMS Count",  'OnGetCountOrderLines_OnAddStepsToAnyLine',  '',  truetrue,  truetrue)]
        localprocedure OnGetCountOrderLines OnGetCountOrderLines_OnAddStepsToAnyLine(_RecRef:  RecordRef;  var  _BaseOrderLineElement:  Record  "MOB NS BaseDataModel ElementMOB NS BaseDataModel Element")
        begin
        end;    


    //   [Example]:  Add steps referenced by new RegistrationCollectorConfiguration-Key to line steps collectors
    Add steps referenced by new RegistrationCollectorConfiguration-Key to line steps collectors
    [EventSubscriber(ObjectType::Codeunit,  Codeunit::"MOB WMS CountMOB WMS Count",  'OnGetCountOrderLines_OnAddStepsToAnyLine',  '',  truetrue,  truetrue)]
        localprocedure MyOnGetCountOrderLines MyOnGetCountOrderLines_OnAddStepsToAnyLine(_RecRef:  RecordRef;  var  _BaseOrderLineElement:  Record  "MOB NS BaseDataModel ElementMOB NS BaseDataModel Element")
        begin
        with        _BaseOrderLineElement do
            CreateBaseOrderLineElement.Create_StepsByReferenceDataKey('CustomCountSteps', true);
        end;


        [EventSubscriber(ObjectType::Codeunit,   Codeunit::"MOB WMS Reference DataMOB WMS Reference Data",   'OnGetReferenceData_OnAddRegistrationCollectorConfigurations',   '',  truetrue,  truetrue)]
        local procedure MyOnGetReferenceData MyOnGetReferenceData_OnAddRegistrationCollectorConfigurations(var  _Steps:  Record  "MOB Steps ElementMOB Steps Element")
        begin
        with _Steps do begin
            InitConfigurationKey        _Steps.InitConfigurationKey('CustomCountSteps');
            Create
        _Steps.Create_DecimalStep(10000,   'CustomNetWeightGrams');
            Set        _Steps.Set_header('
Net Weight Net Weight (Grams)');
            Set        _Steps.Set_label('
Net Weight Net Weight (Grams):');
            Set        _Steps.Set_helpLabel('
Net Weight in Grams per Base Unit of MeasureNet Weight in Grams per Base Unit of Measure');
            Set        _Steps.Set_minValue(0);
            Set        _Steps.Set_maxValue(100000);
            Set        _Steps.Set_performCalculation(true);
        end;
        end;


 

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
sorttitle
titleExamples
excerptTypesimple
cqllabel = "bc" and label = "orderlines" and label = "example" and label = "OnAddStepsToAnyLine"

...