Versions Compared

Key

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

...

...

...

...

...

...

...

...


Description

Excerpt

Create multilingual customizations using Mobile Messages.

  • more elaborate description....

Use case

...


Use cases

  • Modify existing translations
  • Support multiple languages with your customization

...

...


Behavior on the device

Based on the Mobile Language the mobile app 

How to enable it

...

The field "Language Code" on Mobile Users, determines what Mobile Messages are used.

Mobile Messages can be modified by code as we will do in this example.


Step 1 -

...

  • Enables...
     
     

...

  • Sets the...

Step 1 - Something

...

Adding mobile message

  • Adding a Mobile Message and its translation
  • The _LanguageCode corresponds to Mobile Language

    [EventSubscriber(ObjectType::Codeunit,

...

Codeunit::

...

Available events are:

Update 

Filter by label (Content by label)
showLabelsfalse
max90
showSpacefalse
sorttitle
cqllabel = "bc" and label = "orderlines" and label = "integrationevent" and label = "onaftersetfrom" and ancestor = "47220743"

How it works behind the scenes Is this needed?

XML Response example

Code Block
languagexml
titleXML Response example
<BaseOrderLine xmlns="http://schemas.taskletfactory.com/MobileWMS/BaseDataModel">
 ....
 

 

See also 

...

"MOB WMS Language", 'OnAddMessages', '', true, true)]
    localprocedureMyOnAddMessages(_LanguageCode: Code[10]; var_Messages: Record"MOB Message")
    begin
        if_LanguageCode='ENU'then
            _Messages.Create('ENU', 'MYSIGNATUREHELPLABEL', 'Make sure to verify the picked items.'); // Create translation for my custom mobile message
    end;

Step 2 - Using the mobile message as "label" on a step


    [EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Pick", 'OnPostPickOrder_OnAddStepsToAnyHeader', '', true, true)]
    localprocedureMyOnPostPickOrder_OnAddStepsToAnyHeader(var_OrderValues: Record"MOB Common Element"; _RecRef: RecordRef; var_StepsElement: Record"MOB Steps Element")
    var
        MobWmsLanguage: Codeunit"MOB WMS Language";
    begin
        // Break if new step is already collected to prevent infinite loop
        if_OrderValues.HasValue('MySignatureStep') then
            exit;

        // Create a new Signature step
        _StepsElement.Create_SignatureStep(10000, 'MySignatureStep');
        _StepsElement.Set_helpLabel(MobWmsLanguage.GetMessage('MYSIGNATUREHELPLABEL')); // Set HelpLabel to use my custom mobile message
    end;


See also

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
sorttitle
reversetrue
excerptTypesimple
cqllabel

...

= "

...

bc"

...

and label = "

...

onaddmessages"


Before

Image Added


After

Image Added