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

The UI elements are not not displayed on the screen!

$
0
0

Hi all,

          I created a simple UI5 mobile application with two pages with js view . when i run the application i just get the Bluecrystal theme in the background but no buttons or inputs are displayed!

Is there any problem with my browser/ or any set of plugins missing in my IDE?!

Please help!

 

Here is the code:

 

createContent : function(oController) {

  var app = new sap.m.App("myApp", {initialPage:"page1"});

 

  var page1 = new sap.m.Page("page1",{

  title:"billing resource",

  content: new sap.m.Button({text:"go to page2",

  press:function(){

  app.to("page2");

  }

 

  })

 

 

});

 

 

 

  // create the second page of your application

  var page2 = new sap.m.Page({

  title: "Page 2",

  showNavButton: true,  // page 2 should display a back button

  navButtonPress : function(){

               app.back();            // when pressed, the back button should navigate back up to page 1

           },

          icon: "http://www.sap.com/global/ui/images/global/sap-logo.png",

        content : new sap.m.Text({text:"Hello Mobile World!"}),

        });

  app.addPage(page1).addPage(page2);

  app.placeAt("content");

  return app;

 

         Seems like nobody here has got this kind of error before.!!


Antony.


Viewing all articles
Browse latest Browse all 6178

Trending Articles



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