OnAfterCreateDefaultMenuOptions

Use this event to

Add new custom Mobile Menu entries.

Template

    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Setup Doc. Types", 'OnAfterCreateDefaultMenuOptions''', true, true)]
    local procedure OnAfterCreateDefaultMenuOptions()
    begin
    end;

Example

    // [Example : Add Custom Menu Item] 

    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Setup Doc. Types", 'OnAfterCreateDefaultMenuOptions''', true, true)]
    local procedure Ex01OnAfterCreateDefaultMenuOptions()
    var
        MobWmsSetupDocTypes: Codeunit "MOB WMS Setup Doc. Types";
    begin
        MobWmsSetupDocTypes.CreateMobileMenuOptionAndAddToMobileGroup('MyMenuItem''WMS'1000);
    end;


See also:

 

Version History

VersionChanges
MOB5.18Introduced