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

SAPUI5 is not working on......

$
0
0

Hi all,

 

I using below very simple SAPUI sample to test UI5 on MII. It remote call src="https://sapui5.netweaver.ondemand.com/resources/sap-ui-core.js", so even I import it into MII, I still not need local src.

 

This sample works if you save it as .html then open it via brower.

 

However when i imported into MII, then test run, nothing happend..... Blank webpage.......

 

So strange! Any advise?

 

I also try to use local Libary, but same result.

 

htemdafda1.PNG

 

UI Development Toolkit for HTML5 (SAPUI5) - Getting Started

 

<!DOCTYPE html>

<html>

<head>

 

  <meta http-equiv="X-UA-Compatible" content="IE=edge" />

 

  <title>SAPUI5 in 20 Seconds</title>

 

  <!- 1.) Load SAPUI5, select theme and control library ->

  <script id="sap-ui-bootstrap"

  type="text/javascript"

  src="https://sapui5.netweaver.ondemand.com/resources/sap-ui-core.js"

  data-sap-ui-theme="sap_goldreflection"

  data-sap-ui-libs="sap.ui.commons"></script>

 

  <!- 2.) Create a UI5 button and place it onto the page ->

  <script>

  

  // create the button instance

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

  

  // set properties, e.g. the text

  myButton.setText("Hello World!");

  

  // attach an action to the button's "press" event (use jQuery to fade out the button)

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

  

  // place the button into the HTML element defined below

  myButton.placeAt("uiArea");

 

  // an alternative, more jQuery-like notation for the same is:

  /*

  $(document).ready(function() {

  $("#uiArea").sapui("Button", "btn", {

  text:"Hello World!",

  press: function(){ $("#btn").fadeOut(); }

  });

  });

  */

  

  </script>

</head>

<body class="sapUiBody">

 

  <!- This is where you place the UI5 button ->

  <div id="uiArea"></div>

 

</body>

</html>


Viewing all articles
Browse latest Browse all 9041

Trending Articles



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