on 04-07-2014 4:27 PM
Hello experts,
I made a sap splitapp but it is not showing any results.
The typical background is showing but that's it.
I only get 1 warning: event.returnValue is deprecated. Please use the standard event.preventDefault() instead.
My index.html file:
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<script src="resources/sap-ui-core.js" id="sap-ui-bootstrap"
data-sap-ui-libs="sap.m,sap.ui.commons"
data-sap-ui-theme="sap_bluecrystal"
language="javascript" SRC="js/App.js">
</script>
<!-- only load the mobile lib "sap.m" and the "sap_mvi" theme -->
<link REL="StyleSheet" TYPE="text/css" HREF="css/Stylesheet.css">
</head>
<body class="sapUiBody" role="application">
<div id="content"></div>
</body>
</html>
My App.js file:
sap.ui.localResources("partials");
jQuery.sap.registerModulePath("partials", "js/partials");
var startpage = sap.ui.view({id:"promostart", viewName:"partials.Promo_App_Start", type:sap.ui.core.mvc.ViewType.JS});
var infopage = sap.ui.view({id:"promoinfo", viewName:"partials.Promo_App_Info", type:sap.ui.core.mvc.ViewType.JS});
var infopage2 = sap.ui.view({id:"promoinfo2", viewName:"partials.Promo_App_Info2", type:sap.ui.core.mvc.ViewType.JS});
/*** THIS IS THE "APPLICATION" CODE ***/
//SPLIT APP
var oSplitApp = new sap.m.SplitApp("mySplitApp", {});
//add the master pages to the splitapp control
oSplitApp.addMasterPage(startpage);
//add the detail pages to the splitapp control
oSplitApp.addDetailPage(infopage).addDetailPage(infopage2);
//oSplitApp.addDetailPage(oDetailPage1).addDetailPage(oDetailPage2);
//place
oSplitApp.placeAt("content");
My views return pages.
Kind Regards,
bart
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.