<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: UI5 Components: Component-preload.js in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/ui5-components-component-preload-js/qaa-p/9976529#M3589166</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just resolved this issue, by adding a new file &lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;STRONG&gt;Component-preload.js&lt;/STRONG&gt; in the app directory&lt;/SPAN&gt;, with following contents:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;jQuery.sap.declare("sap.ui.demo.myFiori.Component-preload");&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I think it is a nice idea to have this new file so that we can add a piece of code (hook) before loading the whole component.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Apr 2014 14:56:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-04-07T14:56:00Z</dc:date>
    <item>
      <title>UI5 Components: Component-preload.js</title>
      <link>https://community.sap.com/t5/technology-q-a/ui5-components-component-preload-js/qaq-p/9976526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When using Components in UI5 apps I can see a stray GET request each time the application is loaded looking for Component-preload.js in the app directory.&lt;/P&gt;&lt;P&gt;There is a little bit of explanation on preloading in the SDK help (but not much). From what I can gather: library pre-loading is something thats only applicable to the SAP-provided UI5 libraries. Our own code can't execute till the UI5 libraries are loaded anyway&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried setting data-sap-ui-preload="async" (sync is the default); but then UI5 won't load. Interestingly if I set &lt;SPAN style="color: #333333; font-family: 'Courier New', Courier, monospace;"&gt;sap-ui-preload=&lt;/SPAN&gt;auto as a url query string parameter; the app seems to load normally (sync) and there is no stray GET on the Component-preload.js file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any further information on pre-loading and why there is a GET request on this file and the best way to stop it.&lt;/P&gt;&lt;P&gt;If you also know how to stop all the message bundle GET's that would be interesting to know as well.&amp;nbsp;&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jan 2014 06:59:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/ui5-components-component-preload-js/qaq-p/9976526</guid>
      <dc:creator>js2</dc:creator>
      <dc:date>2014-01-19T06:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: UI5 Components: Component-preload.js</title>
      <link>https://community.sap.com/t5/technology-q-a/ui5-components-component-preload-js/qaa-p/9976527#M3589164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I too have the same issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://openui5.hana.ondemand.com/docs/guide/ReleaseNotes.html" title="https://openui5.hana.ondemand.com/docs/guide/ReleaseNotes.html"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Documentation/ReleaseNotes – SAPUI5 Wiki (TIP CORE User Interface)&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/A&gt;&lt;/P&gt;&lt;P&gt;Here there is a mention about fixing Component-preload.js Since the component control itself is in development (as per documentation) we may see more changes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jan 2014 15:55:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/ui5-components-component-preload-js/qaa-p/9976527#M3589164</guid>
      <dc:creator>kammaje_cis</dc:creator>
      <dc:date>2014-01-19T15:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: UI5 Components: Component-preload.js</title>
      <link>https://community.sap.com/t5/technology-q-a/ui5-components-component-preload-js/qaa-p/9976528#M3589165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for pointing out the release notes. I can see that in the November release of 1.16.5 it states: "&lt;SPAN style="color: #363636; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;[FIX] Avoid Component preload when Component has been loaded already&lt;/SPAN&gt;". I'm testing on the latest 1.16.8 though and still see the requests.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand that the component model is marked as experimental; but these have been there since 1.9.2. Actually allot of the "good stuff" in UI5 is marked as "experimental".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 00:42:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/ui5-components-component-preload-js/qaa-p/9976528#M3589165</guid>
      <dc:creator>js2</dc:creator>
      <dc:date>2014-01-20T00:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: UI5 Components: Component-preload.js</title>
      <link>https://community.sap.com/t5/technology-q-a/ui5-components-component-preload-js/qaa-p/9976529#M3589166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just resolved this issue, by adding a new file &lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;STRONG&gt;Component-preload.js&lt;/STRONG&gt; in the app directory&lt;/SPAN&gt;, with following contents:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;jQuery.sap.declare("sap.ui.demo.myFiori.Component-preload");&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I think it is a nice idea to have this new file so that we can add a piece of code (hook) before loading the whole component.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2014 14:56:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/ui5-components-component-preload-js/qaa-p/9976529#M3589166</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-07T14:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: UI5 Components: Component-preload.js</title>
      <link>https://community.sap.com/t5/technology-q-a/ui5-components-component-preload-js/qaa-p/9976530#M3589167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this file is not meant to be loaded "before" a Component, but it is supposed to contain the entire application code, including all Views, Controllers, etc. within ONE file. (to reduce requsts)&lt;/P&gt;&lt;P&gt;The format is the same (or similar) as the library-preload file, hence the name. "Preload" because all resources are loaded in advance and then parsed on demand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See my top-level response for more details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2014 08:30:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/ui5-components-component-preload-js/qaa-p/9976530#M3589167</guid>
      <dc:creator>AndreasKunz</dc:creator>
      <dc:date>2014-04-08T08:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: UI5 Components: Component-preload.js</title>
      <link>https://community.sap.com/t5/technology-q-a/ui5-components-component-preload-js/qaa-p/9976531#M3589168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jason,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this Component-preload.js is the next step of performance improvements (by reduction of requests).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a previous step, the library-preload.js files per control library bundled all controls of the library into one JSON file containing only strings. This file is loaded in advance (hence "preload") and the code of each control was then parsed on-demand.&lt;/P&gt;&lt;P&gt;This preload file can only be produced by our internal (complex) Maven-based build and by the Control development tools in Eclipse which I think are not available outside yet, either. We are currently moving away from this build to a simpler build that can be used outside as well (think Grunt) and eventually this feature should be availabe for your control libraries as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Component-preload.js does a similar thing, but on application level: all the Views and Controllers and helper classes can cause a lot of requests, and they are bundled in a similar way, hence the similar name. Again, this build step is currently not available outside, but should eventually be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are indeed still experimenting how to do it best. A big question is how to further optimize the loading of controls: loading entire libraries is not optimal, especially when only controls from each library are needed. But when you package only the initial needed stuff, should further controls then again be loaded on demand, one-by-one?? Too many requests. Or should all resources ever possibly needed in an app be loaded initially? But what does this mean for Apps like the Fiori Launchpad which actually can load many other apps/components? Load the total superset in advance? Or how to build delta packages without an active server-side component which would make UI5 depend on certain server technologies?&lt;/P&gt;&lt;P&gt;For simpler, smaller, isolated apps a build step that would optimize the result a lot would be quite possible and maybe that's what we should do first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2014 09:19:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/ui5-components-component-preload-js/qaa-p/9976531#M3589168</guid>
      <dc:creator>AndreasKunz</dc:creator>
      <dc:date>2014-04-08T09:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: UI5 Components: Component-preload.js</title>
      <link>https://community.sap.com/t5/technology-q-a/ui5-components-component-preload-js/qaa-p/9976532#M3589169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for that detailed response Andreas - it all makes sense with that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for performance optimization (which seems to be the biggest issue for UI5 based on the discussions I'm having with other developers):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With a little re-work, could we not just use script tags to include each control we want to use instead of having to load an entire library and without the need for parsing a preload json file. We could then use standard web tools (with grunt, gulp, etc) to minify an concat resources and so on... and only ever include exactly what we need which miniises the size of the resources and the number of GET requests...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 00:18:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/ui5-components-component-preload-js/qaa-p/9976532#M3589169</guid>
      <dc:creator>js2</dc:creator>
      <dc:date>2014-04-09T00:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: UI5 Components: Component-preload.js</title>
      <link>https://community.sap.com/t5/technology-q-a/ui5-components-component-preload-js/qaa-p/9976533#M3589170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, well, basically yes, but what about the CSS? You want to do the same for the single control CSS files? And also for the single script files that are normally merged into sap-ui-core.js?&lt;/P&gt;&lt;P&gt;And how will you know which other JS files and controls the used controls depend on? When using sap.m.List, you'd need to remember to also include sap.m.ListBase script, to give just one very obvious example.&lt;/P&gt;&lt;P&gt;I think such a process that is based on manual configuration on this granularity can quickly become much too cumbersome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of this, the dependencies should be built on a require/declare mechanism - which they actually already are. This mechanism is now moved towards requireJS. And with a bit more parsing, those tools you mention can then again be used to do the optimization. Same for the CSS files: we are going to use LESS imports to declare which files should be concatenated. And build tools can easily resolve these imports then.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another thing: in the Ctrl-Alt-Shift-P (or S) tools, you can already find a list of all currently loaded UI5 modules (=files), so an optimization could also be based on this list, retrieved after a test run of the application. And in fact we had also built a download configurator like that of jQuery UI which uses this module list as input and then creates a custom UI5 script which contains exactly what is needed. But that's too much manual work because it needs to be applied after every UI5 update. So we also built a server-side mechanism controlled with URL parameter, which creates such an optimized UI5 file on the fly. This one is only usable on Java servers, so it's again not a general solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe the solution is a small build step (like you proposed), but not based on file imports in HTML, but on dependency declarations in the files. And we are working on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But all of these approaches, including your proposal, still have an issue in big application suites where "exactly what is needed" is either very much in total, or is not even known in advance when content is dynamically loaded. So the problem how to load sub-bundles and then efficiently load missing stuff later is still open.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 10:51:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/ui5-components-component-preload-js/qaa-p/9976533#M3589170</guid>
      <dc:creator>AndreasKunz</dc:creator>
      <dc:date>2014-04-09T10:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: UI5 Components: Component-preload.js</title>
      <link>https://community.sap.com/t5/technology-q-a/ui5-components-component-preload-js/qaa-p/9976534#M3589171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep require.js is exactly what I'd use. Catering for small apps and huge ones is certainly a challenge. Looking through the current sources of the require code I can see a few references to require.js compatibility however I couldn't get it to load a require.js module. So it sounds like you're moving towards compatibility which is great. &lt;/P&gt;&lt;P&gt;There's also the ES6 module format &lt;SPAN style="font-size: 10pt;"&gt;coming to browsers very soon.&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what about web components - does that point to a solution. If every control was a web component then the CSS and js is self-contained. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking forward to it anyway.... Using gulp or grunt would be great as allot of web developers are familiar with those tools...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 12:01:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/ui5-components-component-preload-js/qaa-p/9976534#M3589171</guid>
      <dc:creator>js2</dc:creator>
      <dc:date>2014-04-09T12:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: UI5 Components: Component-preload.js</title>
      <link>https://community.sap.com/t5/technology-q-a/ui5-components-component-preload-js/qaa-p/9976535#M3589172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;&amp;gt; you're moving towards compatibility&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; what about web components - does that point to a solution. If every control was a web component then the CSS and js is self-contained.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are investigating Web Components, but not so much for performance reasons, but for a new Control structure, better encapsulation and native browser support and more developer-friendly usage.&lt;/P&gt;&lt;P&gt;Code size or request count is hardly addressed by Web Components and complete self-contained-ness is not necessarily the best - some kind of dependencies are fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 12:06:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/ui5-components-component-preload-js/qaa-p/9976535#M3589172</guid>
      <dc:creator>AndreasKunz</dc:creator>
      <dc:date>2014-04-09T12:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: UI5 Components: Component-preload.js</title>
      <link>https://community.sap.com/t5/technology-q-a/ui5-components-component-preload-js/qaa-p/9976536#M3589173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting the same error Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;launchdashboard&lt;/STRONG&gt; is my initial view &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;component.js&lt;/P&gt;&lt;P&gt;------------------------------------------&lt;/P&gt;&lt;P&gt;jQuery.sap.declare("ZGreenfield.Component");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sap.ui.core.UIComponent.extend("ZGreenfield.Component", {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; createContent : function() {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; // create root view&lt;/P&gt;&lt;P&gt;&amp;nbsp; var oView = sap.ui.view({&lt;/P&gt;&lt;P&gt;&amp;nbsp; id : "App",&lt;/P&gt;&lt;P&gt;&amp;nbsp; viewName : "ZGreenfield/greenfield_refinery.launchdashboard",&lt;/P&gt;&lt;P&gt;&amp;nbsp; type : "JS",&lt;/P&gt;&lt;P&gt;&amp;nbsp; viewData : { component : this }&lt;/P&gt;&lt;P&gt;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// // Using OData model to connect against a real service&lt;/P&gt;&lt;P&gt;// var url = "/proxy/http/&amp;lt;server&amp;gt;:&amp;lt;port&amp;gt;/sap/opu/odata/sap/ZGWSAMPLE_SRV/";&lt;/P&gt;&lt;P&gt;// var oModel = new sap.ui.model.odata.ODataModel(url, true, "&amp;lt;user&amp;gt;", "&amp;lt;password&amp;gt;");&lt;/P&gt;&lt;P&gt;// oView.setModel(oModel);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; // Using a local model for offline development&lt;/P&gt;&lt;P&gt;&amp;nbsp; var oModel = new sap.ui.model.json.JSONModel("jsonFiles");&lt;/P&gt;&lt;P&gt;&amp;nbsp; oView.setModel(oModel);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; // done&lt;/P&gt;&lt;P&gt;&amp;nbsp; return oView;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;index.html&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;----------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!DOCTYPE HTML&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;html&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;head&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;meta http-equiv='Content-Type' content='text/html;charset=UTF-8'/&amp;gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;script&lt;/P&gt;&lt;P&gt;&amp;nbsp; id="sap-ui-bootstrap"&lt;/P&gt;&lt;P&gt;&amp;nbsp; src="resources/sap-ui-core.js"&lt;/P&gt;&lt;P&gt;&amp;nbsp; data-sap-ui-theme="sap_platinum"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; data-sap-ui-libs="sap.ui.commons,sap.ui.table,sap.suite.ui.commons,sap.viz"&lt;/P&gt;&lt;P&gt;&amp;nbsp; data-sap-ui-resourceroots='{&lt;/P&gt;&lt;P&gt;&amp;nbsp; "ZGreenfield": "./"&lt;/P&gt;&lt;P&gt;&amp;nbsp; }' &amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; new sap.ui.core.ComponentContainer({&lt;/P&gt;&lt;P&gt;&amp;nbsp; name : "ZGreenfield"&lt;/P&gt;&lt;P&gt;&amp;nbsp; }).placeAt("content");&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/head&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;body class="sapUiBody" role="application"&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;div id="content"&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/body&amp;gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/515616" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;P&gt;Pandu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2014 15:06:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/ui5-components-component-preload-js/qaa-p/9976536#M3589173</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-08-07T15:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: UI5 Components: Component-preload.js</title>
      <link>https://community.sap.com/t5/technology-q-a/ui5-components-component-preload-js/qaa-p/9976537#M3589174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i am working on the SAPUI5 application. As per my application scenario, i have to consume the sap netweaver service and need to populate the data in master and detail page.i have completed the SAPUI5 exercise (10 exercise). so on top of that i am trying to connect with the oData service. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i added the real service in Component.js file and mentioned the collection name in the master.view.xml. it is working fine. but i am not able to navigate the selected value in the detail page and i do not know where to mention the second service in the code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 18pt; font-family: Arial, sans-serif;"&gt;/*master.controller page starts*/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL style="list-style-type: lower-alpha;"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;jQuery.sap.require("sap.ui.demo.myFiori.util.Formatter");&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;jQuery.sap.require("sap.ui.demo.myFiori.util.Grouper");&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;jQuery.sap.require("sap.ui.core.routing.Router");&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;jQuery.sap.require("sap.ca.scfld.md.controller.ScfldMasterController");&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL style="list-style-type: lower-alpha;"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;sap.ui.controller("sap.ui.demo.myFiori.view.Master", {&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; oView:null,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; oModel:null,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; onInit : function()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; console.log('onInit of master');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; this.oView = this.getView();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; this.oModel = this.oView.getModel();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; },&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; handleListSelect : function(evt)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; console.log('calling handleListSelect item');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; var context = evt.getParameter("listItem").getBindingContext();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; console.log('after seting context');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; var url = "/MyFioriUI5/proxy/sap/opu/odata/sap/ZPR_TRACK_SRV;mo/";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; var oModel = new sap.ui.model.odata.ODataModel(url, true, "", "");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; // oView.setModel(oModel);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; console.log('after seting context'+oModel);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; this.nav.to("Detail", context);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; },&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; handleListItemPress : function (evt) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; var context = evt.getSource().getBindingContext();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; this.nav.to("detail", context);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; },&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 18pt; font-family: Arial, sans-serif;"&gt;/*master.controller page ends*/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 18pt; font-family: Arial, sans-serif;"&gt;/*detail.controller page starts*/&lt;/STRONG&gt;&lt;/P&gt;&lt;OL style="list-style-type: lower-alpha;"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;jQuery.sap.require("sap.ui.demo.myFiori.util.Formatter");&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;jQuery.sap.require("sap.m.MessageBox");&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;jQuery.sap.require("sap.m.MessageToast");&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL style="list-style-type: lower-alpha;"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;jQuery.sap.require("sap.ca.scfld.md.controller.BaseDetailController");&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL style="list-style-type: lower-alpha;"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;sap.ui.controller("sap.ui.demo.myFiori.view.Detail", {&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; onBeforeRendering : function() {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log('in detail page');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; this.byId("SupplierForm").bindElement("BusinessPartner");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; handleNavButtonPress : function()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.Log('in detail page1');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;});&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 18pt; font-family: Arial, sans-serif;"&gt;/*detail .controller page ends*/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 18pt; font-family: Arial, sans-serif;"&gt;/*Component.js page starts*/&lt;/STRONG&gt;&lt;/P&gt;&lt;OL style="list-style-type: lower-alpha;"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;jQuery.sap.declare("sap.ui.demo.myFiori.Component");&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;jQuery.sap.require("sap.ca.scfld.md.ComponentBase");&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL style="list-style-type: lower-alpha;"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;sap.ui.core.UIComponent.extend("sap.ui.demo.myFiori.Component", {&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; metadata: sap.ca.scfld.md.ComponentBase.createMetaData(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; "MD", {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; "name" : "Purchase Requisition",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; "version" : "1.0.0",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; "library" : "sap.ui.demo.myFiori",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; "dependencies" : {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; "libs" : [ "sap.m", "sap.me" ],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; "components" : []&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; },&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; "config" : {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; "resourceBundle" : "i18n/messageBundle.properties",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; "titleResource" : "app.Identity",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; "icon" : "sap-icon://Fiori2/F0402",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; "favIcon" : "./resources/sap/ca/ui/themes/base/img/favicon/Approve_Purchase_Orders.ico",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; "homeScreenIconPhone" : "./resources/sap/ca/ui/themes/base/img/launchicon/Approve_Purchase_Orders/57_iPhone_Desktop_Launch.png",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; "homeScreenIconPhone@2" : "./resources/sap/ca/ui/themes/base/img/launchicon/Approve_Purchase_Orders/114_iPhone-Retina_Web_Clip.png",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; "homeScreenIconTablet" : "./resources/sap/ca/ui/themes/base/img/launchicon/Approve_Purchase_Orders/72_iPad_Desktop_Launch.png",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; "homeScreenIconTablet@2" : "./resources/sap/ca/ui/themes/base/img/launchicon/Approve_Purchase_Orders/144_iPad_Retina_Web_Clip.png"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; },&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; masterPageRoutes : {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; "master" : {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; "pattern" : "GET_ALL_PRSet",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; "view" : "sap.ui.demo.myFiori.view.Master"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; },&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; detailPageRoutes : {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; "detail" : {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; "pattern" : "GET_PR_DetailsSet/{contextPath}",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; "view" : "sap.ui.demo.myFiori.view.Detail"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; },&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; "noData" : {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; "pattern" : "noData",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; "view" : "empty",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; }),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; createContent : function() {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; // create root view&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; var oView = sap.ui.view({&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; id : "app",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; viewName : "sap.ui.demo.myFiori.view.App",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; type : "JS",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; viewData : {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; component : this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; });&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; // Using OData model to connect against a real service&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; var url = "/MyFioriUI5/proxy/sap/opu/odata/sap/ZPR_TRACK_SRV;mo/";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; var oModel = new sap.ui.model.odata.ODataModel(url, true, "", "");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; oView.setModel(oModel);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; // set i18n model&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; var i18nModel = new sap.ui.model.resource.ResourceModel({&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; bundleUrl : "i18n/messageBundle.properties"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; });&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; oView.setModel(i18nModel, "i18n");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; // set device model&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; var deviceModel = new sap.ui.model.json.JSONModel({&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; isPhone : jQuery.device.is.phone,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; isNoPhone : !jQuery.device.is.phone,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; listMode : (jQuery.device.is.phone) ? "None" : "SingleSelectMaster",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; listItemType : (jQuery.device.is.phone) ? "Active" : "Inactive"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; });&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; deviceModel.setDefaultBindingMode("OneWay");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; oView.setModel(deviceModel, "device");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; // Using a local model for offline development&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;// var oModel = new sap.ui.model.json.JSONModel("model/mock.json");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;// oView.setModel(oModel);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; // done&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; return oView;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;});&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 18pt; font-family: Arial, sans-serif;"&gt;/*Component .js page ends*/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;});&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: 'Century','serif';"&gt;Thank you,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: 'Century','serif';"&gt;Regards,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Century','serif';"&gt;JK&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 06:55:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/ui5-components-component-preload-js/qaa-p/9976537#M3589174</guid>
      <dc:creator>Jayakrishnan</dc:creator>
      <dc:date>2014-11-26T06:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: UI5 Components: Component-preload.js</title>
      <link>https://community.sap.com/t5/technology-q-a/ui5-components-component-preload-js/qaa-p/9976538#M3589175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andreas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;are there any news on the topic, that I may missed?&lt;BR /&gt;With the newest releases from SAPUI5 / OpenUI5 I still get the 404 from Component-preload.js&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Axel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2015 22:34:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/ui5-components-component-preload-js/qaa-p/9976538#M3589175</guid>
      <dc:creator>AxelSchroeder01</dc:creator>
      <dc:date>2015-03-09T22:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: UI5 Components: Component-preload.js</title>
      <link>https://community.sap.com/t5/technology-q-a/ui5-components-component-preload-js/qaa-p/9976539#M3589176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Axel,&lt;/P&gt;&lt;P&gt;well, this error comes from the attempt to load this optimized file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Definitely new since my last comment is that you can create this optimized file for your own applications by using the OpenUI5 grunt build (the "openui5_preload" task with "component" options).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't do this, you will continue seeing this error, but it will not affect the application, we will just load the single files instead.&lt;/P&gt;&lt;P&gt;I think you can still get rid of this error by adding the following parameter to the bootstrap script tag:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: #efefef; color: blue; font-family: 'Courier New'; font-size: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: DE; mso-bidi-language: AR-SA;"&gt;data-sap-ui-preload=&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: #efefef; color: green; font-family: 'Courier New'; font-size: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: DE; mso-bidi-language: AR-SA;"&gt;""&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But be aware that using the preload will improve the performance of your application. Also see &lt;A _jive_internal="true" href="https://answers.sap.com/community/developer-center/front-end/blog/2015/02/18/optimizing-openui5-apps"&gt;http://scn.sap.com/community/developer-center/front-end/blog/2015/02/18/optimizing-openui5-apps&lt;/A&gt; for more details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 11:03:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/ui5-components-component-preload-js/qaa-p/9976539#M3589176</guid>
      <dc:creator>AndreasKunz</dc:creator>
      <dc:date>2015-03-12T11:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: UI5 Components: Component-preload.js</title>
      <link>https://community.sap.com/t5/technology-q-a/ui5-components-component-preload-js/qaa-p/9976540#M3589177</link>
      <description>Thanks Andreas, of course this is not the correct way to handle the error, but your comment helps to hide the error from those not using component-preload.&lt;BR /&gt;</description>
      <pubDate>Fri, 31 Mar 2023 19:18:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/ui5-components-component-preload-js/qaa-p/9976540#M3589177</guid>
      <dc:creator>zamboni</dc:creator>
      <dc:date>2023-03-31T19:18:52Z</dc:date>
    </item>
  </channel>
</rss>

