Use this event to
Excerpt |
---|
Modfy properties for any single Step from custom RegistrationCollectorConfigurations. |
...
Template
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Reference Data", 'OnGetReferenceData_OnAfterAddRegistrationCollectorConfiguration', '', true, true)]
local procedure OnGetReferenceData_OnAfterAddRegistrationCollectorConfiguration(var _Steps: Record "MOB Steps Element")
begin
end;
Example
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Reference Data", 'OnGetReferenceData_OnAfterAddRegistrationCollectorConfiguration', '', true, true)]
local procedure MyOnGetReferenceData_OnAfterAddRegistrationCollectorConfiguration(var _Steps: Record "MOB Steps Element")
begin
with _Steps do begin
// Hide CustomNetWeightGrams step
if (ConfigurationKey = 'MyCustomRegistrationCollectorKeyCustomReceiveSteps') and (Get_name() = 'MyStepNameCustomNetWeightGrams') 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 |
...