Use this event to
Excerpt |
---|
Create Line Steps for Planned Functions. |
...
- 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_OnAddRegistrationCollectorConfigurationOnAddRegistrationCollectorConfigurations', '', true, true)]
local procedure OnGetReferenceData_OnAddRegistrationCollectorConfigurationOnAddRegistrationCollectorConfigurations(var _Steps: Record "MOB Steps Element")
begin
with _Steps do begin _Steps.InitConfigurationKey(...);
_Steps.Create_...Step(...);
Set _Steps.Set_...
Set _Steps.Set_...
Set _Steps.Set_...
Create
_Steps.Create_...Step(...);
Set _Steps.Set_...
Set _Steps.Set_...
Set _Steps.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_Steps.InitConfigurationKey('CustomReceiveSteps');
_Steps.Create_DecimalStep(10000, 'CustomNetWeightGrams');
Set _Steps.Set_header('Net Weight (Grams)');
Set _Steps.Set_label('Net Weight (Grams):');
Set _Steps.Set_helpLabel('Net Weight in Grams per Base Unit of Measure');
Set _Steps.Set_minValue(0);
Set _Steps.Set_maxValue(100000);
Set _Steps.Set_performCalculation(true);
Create
_Steps.Create_DecimalStep(20000, 'CustomGrossWeightGrams');
Set _Steps.Set_header('Gross Weight (Grams)');
Set _Steps.Set_label('Gross Weight (Grams):');
Set _Steps.Set_helpLabel('Gross Weight in Grams per Base Unit of Measure');
Set _Steps.Set_minValue(0);
Set _Steps.Set_maxValue(100000);
Set _Steps.Set_performCalculation(true);
end;
end;
Filter by label (Content by label) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...