Skip to Content
0
Former Member
Dec 19, 2013 at 09:04 AM

why is my sap ui5 application not running in preview ?

1276 Views

Hi all,

i'm new to creating SAPUI5 application. my html code is running fine on the browser,

but when i try to "run as preview" the same app in 'eclipse IDE' it doesn't display anything!!

is any local server like apache tomcat need to be installed

neither it shows any errors...Plz help.!!

This is the code in index file.

sap.ui.jsview("sapui5.demo_app", {

/** Specifies the Controller belonging to this View.

* In the case that it is not implemented, or that "null" is returned, this View does not have a Controller.

* @memberOf sapui5.demo_app

*/

getControllerName : function() {

return "sapui5.demo_app";

},

/** Is initially called once after the Controller has been instantiated. It is the place where the UI is constructed.

* Since the Controller is given to this method, its event handlers can be attached right away.

* @memberOf sapui5.demo_app

*/

createContent : function(oController) {

var myButton = new sap.ui.commonsutton("btn");

myButton.setText("Hello World!");

myButton.attachPress(function(){$("#btn").fadeOut();});

myButton.placeAt("uiArea");

}

});

Thanks,

Antony.