Versions Compared

Key

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

Use this event to

Excerpt

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

...

  • Overwrite Mobile WMS Messages that already exists in Mobile Messages table
  • Overwrite labels used in the Android App Mobile Configuration Files (used as "@{LabelName}"). Adding a new message "LabelName" (without '@' or '{}') will overrule similar labels from Android App resource files.


Requirements

"Mobile Language Code" must be filled in on Mobile Users (2/10)

Your new eventsubscriber is executed when:

...


To ensure your new messages is always added, consider (also) adding the messages from your own Install-/Upgrade-codeunits


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 (Content by label)
showLabelsfalse
showSpacefalse
excerptTypesimple
cqllabel = "bc" and label = "onaddmesssages" and label = "example"

...