Versions Compared

Key

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

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

Use this event to

Excerpt

Modfy Modify properties for any single Step from custom RegistrationCollectorConfigurations.


Description

  • You may use this event to change any property or e.g. Hide the step.
  • This event is executed once for every Step added from custom RegistrationCollectorConfigurations.

...

At time of writing no 'RegistrationCollectorConfiguration's exists in ReferenceData for the standard Mobile WMS, meaning you can not use this event to modify standard steps.

  • The standard workflow for "planned" DocumentType's uses steps defined in Application.cfg (with no assiciated ConfigurationKey). 
  • "Unplanned" (Adhoc) workflows uses steps defined in "MOB WMS Adhoc" class (possibly modified from 'OnGetRegistrationConfiguration_OnAddSteps') 


Standard functions does not use this method for Steps.

See Whitepaper Understanding Steps



See also: 
OnGetReferenceData_OnAddHeaderConfigurations


Template

    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Reference Data", 'OnGetReferenceData_OnAfterAddRegistrationCollectorConfigurationOnAfterAddRegistrationCollectorStep''', true, true)]
    local procedure OnGetReferenceData_OnAfterAddRegistrationCollectorConfigurationOnAfterAddRegistrationCollectorStep(var _StepsStepRecord "MOB Steps Element")
    begin
    end;

Example

    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Reference Data", 'OnGetReferenceData_OnAfterAddRegistrationCollectorConfigurationOnAfterAddRegistrationCollectorStep''', true, true)]
    local procedure MyOnGetReferenceData_OnAfterAddRegistrationCollectorConfigurationOnAfterAddRegistrationCollectorStep(var _StepsStepRecord "MOB Steps Element")
    begin
        // Hide CustomNetWeightGrams step
        with _Steps do
            if (if (_Step.ConfigurationKey = 'CustomReceiveSteps') and (_Step.Get_name() 'CustomNetWeightGrams'then
            _Step.Set_visible(false);



        // Change texts for CustomGrossWeightGrams step
        if (_Step.ConfigurationKey = 'MyCustomRegistrationCollectorKeyCustomReceiveSteps') and (_Step.Get_name() 'MyStepNameCustomGrossWeightGrams'then
                Set_visible(false) begin
            _Step.Set_header('Grossweight in Grams');
            _Step.Set_label('Grossweight in Grams:');
            _Step.Set_helpLabel('Grossweight in Grams per PCS');
        end;
    end;

Version History

VersionChanges
MOB5.14Introduced