Versions Compared

Key

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

Use this event to

Excerpt

Modify properties for any single step for Adhoc RegistrationTypes.

...

Template

    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Adhoc Registr.", 'OnGetRegistrationConfiguration_OnAfterAddStep''', true, true)]
    procedure OnGetRegistrationConfiguration_OnAfterAddStep(_RegistrationType: Textvar _HeaderFilterHeaderFieldValuesRecord "MOB NS Request Element"; var _Step: Record "MOB Steps Element")
    begin
    end;


Example

    // Get RegistrationConfiguration for RegistrationType=ItemDimensions – hide Length, Width and Height steps Get RegistrationConfiguration for RegistrationType=ItemDimensions – hide Length, Width and Height steps
    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Adhoc Registr.", 'OnGetRegistrationConfiguration_OnAfterAddStep''', true, true)]
    procedure OnGetRegistrationConfiguration MyOnGetRegistrationConfiguration_OnAfterAddStep(_RegistrationType: Textvar _HeaderFilterHeaderFieldValuesRecord "MOB NS Request Element"; var _Step: Record "MOB Steps Element")
    var
        MobWmsToolbox: Codeunit "MOB WMS Toolbox";
    begin
        if _RegistrationType <> MobWmsToolbox."CONST::ItemDimensions"() then
            exit;

        with _Step do
            if Get_name() in ['Length''Width''Height'then
                Set_visible(false);
    end;



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


Version History

VersionChanges
MOB5.14Introduced
MOB5.15Parameter _HeaderFilter renamed to _HeaderFieldValues