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

« Previous Version 13 Next »

Use this event to

Customize default values for Device Language Codes to be used when entering setup at the Mobile Language page.

Description

When setting up Mobile Languages in the web client, default "Device Language Code"'s is automatically suggested for a number of language codes.

Also, three selected mobile language (including their associated MobMessages; translations) are created during install in MOB5.27 and newer (in older versions, these will need to be setup manually):

  • Danish (Windows Language DAN → Device Language DA) 
  • All english languages (Windows Language EN* → Device Language EN)
  • All german languages (Windows Language DE* → Device Langauge DE)

Using this event, you may implement new default values for other languages ie. if you created a new custom device language pack for your language.

Template

    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Language", 'OnConvertLanguageCodeToDeviceLanguageCode''', true, true)]
    local procedure OnConvertLanguageCodeToDeviceLanguageCode(_LanguageCode: Code[10]; var _DeviceLanguageCode: Code[20]; var _IsHandled: Boolean)
    begin
    end;

Example

    // [Example] : Suggest device language code 'EN' for Malaysian, and a new custom device language 'FR' for any french language

    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Language", 'OnConvertLanguageCodeToDeviceLanguageCode''', true, true)]
    local procedure MyOnConvertLanguageCodeToDeviceLanguageCode(_LanguageCode: Code[10]; var _DeviceLanguageCode: Code[20]; var _IsHandled: Boolean)
    begin
        // Malaysian
        if _LanguageCode = 'MSL' then begin
            _DeviceLanguageCode := 'EN';    // Use english language pack
            _IsHandled := true;
        end;

        // Any french language
        if CopyStr(_LanguageCode, 12'FR' then begin
            _DeviceLanguageCode := 'FR';    // Use some french device language pack (not in standard mobile wms, could be developed by a partner)
            _IsHandled := true;
        end;
    end;


See also:

Filter by label

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

 

Version History

VersionChanges
MOB5.26Introduced
  • No labels