Use this event to
Excerpt |
---|
Modfy Modify properties for any single Step from custom RegistrationCollectorConfigurations. |
...
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
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
Version | Changes |
---|---|
MOB5.14 | Introduced |
...