OnGetReferenceData_OnAfterAddRegistrationCollectorStep
Use this event to
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.
Standard functions does not use this method for Steps.
- The standard Workflows for Planned Functions are statically defined in Mobile Configuration Files.
- Unplanned Functions steps can be modfied in OnGetRegistrationConfiguration_OnAfterAddStep.
See Whitepaper Understanding Steps
See also:
OnGetReferenceData_OnAddHeaderConfigurations
Template
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Reference Data", 'OnGetReferenceData_OnAfterAddRegistrationCollectorStep', '', true, true)]
local procedure OnGetReferenceData_OnAfterAddRegistrationCollectorStep(var _Step: Record "MOB Steps Element")
begin
end;
Example
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Reference Data", 'OnGetReferenceData_OnAfterAddRegistrationCollectorStep', '', true, true)]
local procedure MyOnGetReferenceData_OnAfterAddRegistrationCollectorStep(var _Step: Record "MOB Steps Element")
begin
// Hide CustomNetWeightGrams step
if (_Step.ConfigurationKey = 'CustomReceiveSteps') and (_Step.Get_name() = 'CustomNetWeightGrams') then
_Step.Set_visible(false);
// Change texts for CustomGrossWeightGrams step
if (_Step.ConfigurationKey = 'CustomReceiveSteps') and (_Step.Get_name() = 'CustomGrossWeightGrams') then 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
Version | Changes |
---|---|
MOB5.14 | Introduced |