Use this event to
Modfy 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::Codeunit, Codeunit::"MOB WMS Reference Data", 'OnGetReferenceData_OnAfterAddDataTableEntry', '', true, true)]
local procedure OnGetReferenceData_OnAfterAddDataTableEntry(var _DataTable: Record "MOB DataTable Element")
begin
end;
Example
// [Example]
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Reference Data", 'OnGetReferenceData_OnAfterAddDataTableEntry', '', true, true)]
local procedure MyOnGetReferenceData_OnAfterAddDataTableEntry(var _DataTable: Record "MOB DataTable Element")
begin
with _DataTable do begin
// Not every ReasonCode or ReturnReasonCode have meaningfull descriptions in this database: Fill in blank Names
if (DataTableId = 'ReasonCode') and (Get_Name() = '') then
Set_Name(Get_Code());
if (DataTableId = 'ReturnReasonCode') and (Get_Name() = '') then
Set_Name(Get_Code());
// Replace Name with code for specific UnitOfMeasure Codes (not all)
if (DataTableId = 'UnitOfMeasure') and ((Get_Code() in ['KG', 'KM', 'L'])) then
Set_Name(Get_Code());
end;
end;
Version History
Version | Changes |
---|---|
MOB5.15 | Introduced |