Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

SAPUI5 Application works fine in Browser but not in Mobile

$
0
0

Hi Experts,

 

   I am new to sapui5. I have developed one sample mobile application using SAPUI5.

In that application I  used fake OS  and disable the web security in Chrome.Then it's working fine.

 

I deployed same Application in mobile using Phonegap. But when I run that application I am getting

 

                HTTP Request Failed0,, - at file:///android_asset/www/sapui5/resources/sap-ui-core.js:41


and doesn't give any output.

 

Please find the Below code

 

                   /** Code for Model Creation **/ 

                             var sServiceUrl = "http://xxx.xx.xx.x/ZTEST_CUURENCY_SRV"

 

                           var oModel = new sap.ui.model.odata.ODataModel(sServiceUrl, true, "username", "password"); 

                          sap.ui.getCore().setModel(oModel); 

 

 

                     /** Code for list binding  in view .js file**/  

                  var currencyListHeader = new sap.m.List('currency_list',{ 

                                       inset : false, 

                                       headerText : "Currency List", 

                                       footerText : "End", 

                                       width: "50%" 

                    }); 

                            var itemTemplate = new sap.m.StandardListItem({ 

                                title : "{Currency}",

                                description: "{AltCurr}", 

                                iconInset: false 

                            }); 

                            currencyListHeader.bindAggregation("items",{ 

                                path:    "/Currency",  

                                template: itemTemplate 

                            });

 

                            return currencyListHeader;

 

Please help me to solve this issue

 

Thanks&Regards

Sridevi



Viewing all articles
Browse latest Browse all 6178

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>