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

Version 1 Next »

Use this event to

Add new custom messages (translations) or modify existing messages.


Template

    procedure OnAddMessages(_LanguageCode: Code[10]; var _Messages: Record "MOB Message")
    begin
    end;

Example

    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Language", 'OnAddMessages''', true, true)]
    procedure MyOnAddMessages(_LanguageCode: Code[10]; var _Messages: Record "MOB Message")
    begin
        if _LanguageCode = 'ENU' then begin
            _Messages.Create('ENU''TESTCODE''My custom test translation');
            _Messages.Create('ENU''TESTCODE2''My custom test translation 2');
            _Messages.Create('ENU''SENDER''My replaced standard translation SENDER');
        end;
    end;


See also:

Filter by label

There are no items with the selected labels at this time.

 

Version History

VersionChanges
MOB5.17Introduced
  • No labels