Quantcast
Viewing all articles
Browse latest Browse all 2638

Error when shell code is used in index.html

Hi All,

 

This is my index.html.

<!DOCTYPE HTML>

<html>

<head>

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

<meta http-equiv='Content-Type' content='text/html;charset=UTF-8' />

 

 

<script src="resources/sap-ui-core.js" id="sap-ui-bootstrap"

  data-sap-ui-libs="sap.m,sap.m,sap.ui.comp,sap.ui.ux3"

  data-sap-ui-type="sap.ui.commons.TextField,sap.ui.commons.Button"

  data-sap-ui-resourceroots='{"Spinner": "./"}'

  data-sap-ui-theme="sap_bluecrystal">

 

</script>

<!-- only load the mobile lib "sap.m" and the "sap_bluecrystal" theme -->

 

 

<script>

 

  sap.ui.getCore().attachInit(function() {

  new sap.m.App ({

  pages: [

  new sap.m.Page({

  new sap.ui.Shell({

  headerItems : [ new sap.ui.commons.TextField({text : "User Name"}),

                 new sap.ui.commons.Button({text : "Personalize",tooltip : "Personalize",

                  press : function(oEvent) {alert("Here could open an personalize dialog");}}),

                 new sap.ui.commons.MenuButton({text : "Help",tooltip : "Help Menu",

                  menu : new sap.ui.commons.Menu("menu1", {items : [ new sap.ui.commons.MenuItem("menuitem1",

                  {text : "Help"}),

                 new sap.ui.commons.MenuItem("menuitem2", {text : "Report Incident"}), new sap.ui.commons.MenuItem("menuitem3",

                  {text : "About"}) ]

  })})

    ]

  }),  

  content: [ new sap.ui.core.ComponentContainer({ name : "Spinner"})] ,

  footer:new sap.m.Bar("id_footerbar")  

  })

  ]

  }).placeAt("content");

  });

  </script>

 

 

  </head>

  <body class="sapUiBody" role="application">

  <div id="content"></div>

  </body>

  </html>

 

I am getting the  errorr as  Unexpected identifier  at line "new sap.ui.Shell". plz help.

Thanks.


Viewing all articles
Browse latest Browse all 2638

Trending Articles