Рубрика: first steps

Start with components open sap ui5

first steps, sap ui5

So, first steps!

1 Go to https://openui5.org/releases/

and

2 load the last openui5 release!

 

3 after that just use it:

<!DOCTYPE html>  
<html>
   <head>  
      <meta http-equiv='X-UA-Compatible' content='IE=edge' />  
      <title>Hello World</title>  
  
      <script id='sap-ui-bootstrap' 
           src='[INSTALLATION LOCATION]/resources/sap-ui-core.js'  
           data-sap-ui-theme='sap_belize'  
           data-sap-ui-libs='sap.m'></script>   
  
      <script>  
         var btn = new sap.m.Button({  
            text:'Hello World',  
            press:function(){alert('Hello!');}  
         });  
         btn.placeAt('content');  
      </script>

   </head>
   <body id='content' class='sapUiBody'>
   </body>
</html>

So, and it didn’t work!

 

You can solved it 2 ways:

1 use  <script src=»https://openui5nightly.hana.ondemand.com/resources/sap-ui-core.js»>

2 You need use web server!

for chrome use Web Server for Chrome 

and that you need choose folder with you app and release!

 

So, now it will work!