SAP Knowledge Base Article - Public

2571090 - How to Create a Mashup to Use Different Logon Languages

Symptom

When creating a Mashup, you want to derive the logon language.

Environment

SAP Cloud for Customer

Resolution

You can use the below HTML code:

<html>
 <head>
   <script>
      sap.byd.ui.mashup.onContextUpdate = function() {
        if (typeof sap.byd.ui.mashup.context.system.LogonLanguage
!== "undefined") {
           var ctx = sap.byd.ui.mashup.context;
     var ifram = document.getElementById('test');
     if (ifram) {
    ifram.src = "https://www.bing.com?q=" + ctx.system.LogonLanguage;
     };
        }
      }
   </script>
 </head>
  <body onload="sap.byd.ui.mashup.onContextUpdate();">
    <iframe height="500px" width="100%" id="test"></iframe>
 </body>
</html>


and the format for language is the language code + country code , Like en-US , en-UK , zh-CN.

Keywords

logon language, mashup logon , KBA , AP-RC-UIF-FLX-DEV , UI Adaptation Development Mode , Problem

Product

SAP Cloud for Customer add-ins all versions ; SAP Cloud for Customer core applications all versions