Use this event to
Create Line Steps for Planned Functions.
See also Understanding Steps
Description
Additional ConfigurationKeys with Steps can be added using a number of "Create
"-methods from the input parameter-table.
- Set the ConfigurationKey prior to adding new Steps using
Steps.CreateConfigurationKey
- Add steps:
- "
Create_...Step
"-methods will take a few, mandatory arguments. - "
Create_...Step
"-methods usually will offer an alternative argument list (other signature) that includes mandatory arguments as well as most commonly used optional arguments for the Step inputType..
- "
- Set additional values subsequently using a number of related "
Set_
"-methods.
- Legacy:
- Codeunit "MOB WMS Conf. Tools" is no longer used when creating new ConfigurationKeys and Steps when using this event, but may still be used with the legacy event (see below).
[Legacy]OnGetReferenceData_OnAfterAddRegistrationCollectorConfigurationsAsXml (legacy event)
- Codeunit "MOB WMS Conf. Tools" is no longer used when creating new ConfigurationKeys and Steps when using this event, but may still be used with the legacy event (see below).
Template
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Reference Data", 'OnGetReferenceData_OnAddRegistrationCollectorConfiguration', '', true, true)]
local procedure OnGetReferenceData_OnAddRegistrationCollectorConfiguration(var _Steps: Record "MOB Steps Element")
begin
with _Steps do begin
InitConfigurationKey(...);
Create_...Step(...);
Set_...
Set_...
Set_...
Create_...Step(...);
Set_...
Set_...
Set_...
end;
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
with _Steps do begin
InitConfigurationKey('CustomReceiveSteps');
Create_DecimalStep(10000, 'CustomNetWeightGrams');
Set_header('Net Weight (Grams)');
Set_label('Net Weight (Grams):');
Set_helpLabel('Net Weight in Grams per Base Unit of Measure');
Set_minValue(0);
Set_maxValue(100000);
Set_performCalculation(true);
Create_DecimalStep(20000, 'CustomGrossWeightGrams');
Set_header('Gross Weight (Grams)');
Set_label('Gross Weight (Grams):');
Set_helpLabel('Gross Weight in Grams per Base Unit of Measure');
Set_minValue(0);
Set_maxValue(100000);
Set_performCalculation(true);
end;
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 |