Use this event to
Excerpt |
---|
Add new custom messages (translations) or modify existing messages. |
Add translated labels you can use as Error Messages or directly in the Mobile Configuration File as @{MyLabel} placeholders.
Requirements
- "Mobile Language Code" must be present on the "Mobile User".
- You must manually Select the Action "Create Messages" from "Mobile Language" page, after subscribing
Template
procedure OnAddMessages(_LanguageCode: Code[10]; var _Messages: Record "MOB Message")
begin
end;
Example
[EventSubscriber(ObjectType::Codeunit, Codeunit::"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) | ||||||||
---|---|---|---|---|---|---|---|---|
|
Version History
Version | Changes |
---|---|
MOB5.17 | Introduced |