Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 12 Next »

Use this event to

Modify properties for any single step for Adhoc RegistrationTypes.


See also: OnGetRegistrationConfiguration_OnAddSteps


Description

This event is executed once for every step added from standard Adhoc DocumentTypes as well as custom Adhoc DocumentTypes.

You may use this event to change any property of the step or hide the step.


Template

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


Example

    // Get RegistrationConfiguration for RegistrationType=ItemDimensions – hide Length, Width and Height steps
    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Adhoc Registr.", 'OnGetRegistrationConfiguration_OnAfterAddStep''', true, true)]
    procedure MyOnGetRegistrationConfiguration_OnAfterAddStep(_RegistrationType: Textvar _HeaderFieldValues: Record "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;



More examples


Version History

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



  • No labels