Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8667

SAPUI5 tutorial sample - fade button not working

$
0
0

Hi Experts,

 

    I have this script which is not work and I have no clue as to why and hence reaching out to the experts to see if anyone can guide / direct. Thanks in advance.

 

I have the below code copied and pasted in the view and activated and it is not showing the button:

 

createContent : function(oController) {

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

  myButton.setText("Hello World!");

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

  return myButton;

}

});

 

I made sure that the script source is adjusted to point to /sap/ui5/1/.... and I even tried src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js" but it does not work. Then I had the entire code from --- How to Create and Run a Simple SAPUI5 Application from Scratch within 20 Seconds --- copied in a local .html file and it works in the browser. So really not sure whats is wrong with the project. It seems for some reason the view is not getting invoked at all and thats the reason the page is blank. I added plain text "Hi there" to the index.html file and it is working so nothing wrong with getting to the index file itself.

 

     Any suggestions for the first timer?

 

Best Regards,

Kazmi


Viewing all articles
Browse latest Browse all 8667

Trending Articles



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