Versions Compared

Key

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

Use this event to

Excerpt

Modify properties for any single Step from custom RegistrationCollectorConfigurations.

...

...


See also: 
OnGetReferenceData_OnAddHeaderConfigurations


Template

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

Example

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



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

Version History

VersionChanges
MOB5.14Introduced