OnGetReferenceData_OnAddRegistrationCollectorConfigurations
Use this event to
Create Line Steps for Planned Functions.
See also Understanding Steps
Description
Additional ConfigurationKeys with Steps can be added using Create-methods.
- Set the ConfigurationKey prior to adding new Steps using
Steps.CreateConfigurationKey
- Add a step using "Create_...Step"-method.
- Set additional values subsequently using "Set_"-methods.
(Repeat step 2, 3 to add multiple steps)
Template
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Reference Data", 'OnGetReferenceData_OnAddRegistrationCollectorConfigurations', '', true, true)]
local procedure OnGetReferenceData_OnAddRegistrationCollectorConfigurations(var _Steps: Record "MOB Steps Element")
begin
_Steps.InitConfigurationKey(...);
_Steps.Create_...Step(...);
_Steps.Set_...
_Steps.Set_...
(...)
_Steps.Create_...Step(...);
_Steps.Set_...
_Steps.Set_...
(...)
end;
Example
//
// Create new RegistrationCollectorConfiguration-Key in reference data with two steps named: "CustomGrossWeightGrams" and "CustomNetWeightGrams"
//
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Reference Data", 'OnGetReferenceData_OnAddRegistrationCollectorConfigurations', '', true, true)]
local procedure My01OnGetReferenceData_OnAddRegistrationCollectorConfigurations(var _Steps: Record "MOB Steps Element")
begin
_Steps.InitConfigurationKey('CustomReceiveSteps');
_Steps.Create_DecimalStep(10000, 'CustomNetWeightGrams');
_Steps.Set_header('Net Weight (Grams)');
_Steps.Set_label('Net Weight (Grams):');
_Steps.Set_helpLabel('Net Weight in Grams per Base Unit of Measure');
_Steps.Set_minValue(0);
_Steps.Set_maxValue(100000);
_Steps.Set_performCalculation(true);
_Steps.Create_DecimalStep(20000, 'CustomGrossWeightGrams');
_Steps.Set_header('Gross Weight (Grams)');
_Steps.Set_label('Gross Weight (Grams):');
_Steps.Set_helpLabel('Gross Weight in Grams per Base Unit of Measure');
_Steps.Set_minValue(0);
_Steps.Set_maxValue(100000);
_Steps.Set_performCalculation(true);
end;
More examples
-
Case: Add Line Steps to Warehouse Receipts — A customer wishes to start using Item NetWeight and -GrossWeight, but have currently no values registered at the Item Card. Create a temporary customization is to collect these weights when goods are received.
-
Case: Use your own custom Item Barcode table — A customer wishes to start using there own Item Barcode table when scanning Items on the mobile device.
-
Version History
Version | Changes |
---|---|
MOB5.14 | Introduced This event succeeds OnGetReferenceData_OnAfterAddRegistrationCollectorConfigurationsAsXml |