Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing full articles (6178 articles)
Browse article index
↧

SAP UI5 to SAP Gateway - retrival language

$
0
0

Hi Experts,

 

I have a question regarding language handling in UI5 in context of data retrieval out of

SAP Gateway (e.g. for Backend search help language specific texts).

 

Using a manifest.json in the app project, I could specify the language by specifying

metadataUrlParams for the corresponding model, bound to the UI5 search help.

 

MANIFEST.JSON

 

"models": {

 

"": {  "dataSource": "SearchHelpService",

        "settings": {

         "metadataUrlParams": {

            "sap-language": "en",

            .....

}

 

This works as like SY-LANGU = EN in ABAP, BUT IS HARDCODED...

 

How can I manipulate the meta-Parameter to set dynamically (depending from the browser language)
the language, which will be used in SAP Gateway?

 

I only found a sap.ui.model - function, to read the metadata, but not to manipulate it.

 

Or is there another general technic, to define the ODATA SAP Gateway retrieval language depending
from the Browser language?

 

Thanks in advance

Klaus Wegener

↧

Viewing full articles (6178 articles)
Browse article index

Latest Images

Trending Articles



Latest Images