Versions Compared

Key

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

Use this event to

Excerpt

Modfy properties for any single Step from custom RegistrationCollectorConfigurationsDataTable-"entry" from standard or custom DataTables ("ListData").



Description

This event is executed once for every Step added from custom RegistrationCollectorConfigurationsDataTable-"entry" added to standard as well as custom DataTables. 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.

...

"entry".


See also: 
OnGetReferenceData_OnAddHeaderConfigurationsOnAddDataTables


Template

    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Reference Data", 'OnGetReferenceData_OnAfterAddDataTableEntry''', true, true)]
    local procedure OnGetReferenceData_OnAfterAddDataTableEntry(var _DataTable: Record "MOB DataTable Element")
    begin
    end;

Example

    // [Example]
    [EventSubscriber(ObjectType::CodeunitCodeunit::"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 (// Standard ReferenceData will write ReasonCode.Code and ReasonCode.Description to file without checking for blank values.
        // Not every ReasonCode have meaningfull descriptions in this database: Fill in blank Names with Code instead
        if (_DataTable.DataTableId = 'ReasonCode') and (_DataTable.Get_Name() ''then
                Set_Name(Get_Code());            if (DataTableId = 'ReturnReasonCode') and (Get_Name() ''then
                Set_Name(            _DataTable.Set_Name(_DataTable.Get_Code());


                    // Replace Name with code for specific UnitOfMeasure Codes (not all)
                    if (_DataTable.DataTableId = 'UnitOfMeasure') and ((_DataTable.Get_Code() in ['KG''KM''L'])) then
                Set            _DataTable.Set_Name(_DataTable.Get_Code());
            end;
    end;



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

Version History

VersionChanges
MOB5.15Introduced