Quantcast
Channel: SCN: Message List - SAP Manufacturing Integration and Intelligence (SAP MII)
Viewing all articles
Browse latest Browse all 4841

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 well if you save it as .html locally 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.

 

src="resources/sap-ui-core.js"

but same result. I import sap-ui-core.js under Web/resources. Is it correct? Or need add project name? like src="XXproject/resources/sap-ui-core.js"?

actually both i tried.....  same result,blank page....

 

 

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 4841

Trending Articles



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