Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Use this event to

Excerpt

Create Steps for Planned Functions.

...

Template

    [EventSubscriber(ObjectType::CodeunitCodeunit::"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::CodeunitCodeunit::"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;



Filter by label (Content by label)
showLabelsfalse
showSpacefalse
sorttitle
titleMore examples
excerptTypesimple
cqllabel = "bc" and label = "referencedata" and label = "example" and label = "OnAddRegistrationCollectorConfiguration"

...