Using SAP OpenUI5 on .NET business apps
<p>Currently, I find that it seems to be possible to convert existing .NET business application to use OpenUI5 when the user interface coding is completely isolated from the application logic by using the ASP.net view engine, "Razor".  Please see the link below.</p>

<p><a href="http://www.konkconsulting.com/EN/Articles/Article_openui5_net" rel="nofollow">http://www.konkconsulting.com/EN/Articles/Article_openui5_net</a></p>

<p>I followed the steps, and here is my implementation:</p>

<p>Test.cshtml: </p>

<pre><code>@using MvcApplication1.Models

&lt;script src="~/Views/Home/Test.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="~/resources/sap-ui-core.js"&gt;&lt;/script&gt;

&lt;script type="text/javascript"&gt;
     new WebAppView_RootLayoutMenu();
&lt;/script&gt;
</code></pre>

<p>Test.js</p>

<pre><code>function WebAppView_RootLayoutMenu() {
"use strict";


window.sap.ui.getCore().attachInit(function () {
    //Create openUi5 components here &amp; add them to the HTML body

       var oimage = new sap.m.Image("asd", { src: "https://upload.wikimedia.org/wikipedia/commons/9/9f/GEO_Globe.jpg" });


});
}
</code></pre>

<p>some problems I have encountered:</p>

<ol>
<li><p>In Test.js, I don't know to how put the openui items into the html page</p></li>
<li><p>In Test.js, "var oimage = new sap.m.Image(...)", with the error: </p>

<blockquote>
  <p>Uncaught TypeError: Cannot read property 'Image' of undefined</p>
</blockquote></li>
<li><p>from the website, in the Test.cshtml, the implementation is like "window.WebAppManager.RootLayoutMenu = new WebAppView_RootLayoutMenu();" What is "window.WebAppManager.RootLayoutMenu"? With this setting, it is not working..</p></li>
</ol>

<p>Thanks so much for your help in advance.</p>

<p>Angus</p>