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 20 Next »

Use this event to

Modify properties for any single Step from custom RegistrationCollectorConfigurations.


Description

This event is executed once for every Step added from custom RegistrationCollectorConfigurations. You may use this event to change any property of the Step or hide the Step.

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

  • 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 Registr." class (possibly extended from 'OnGetRegistrationConfiguration_OnAddSteps')


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 (ConfigurationKey = 'CustomReceiveSteps') and (Get_name() 'CustomNetWeightGrams'then
                Set_visible(false);


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




Version History

VersionChanges
MOB5.14Introduced
  • No labels