Posts

Showing posts from February, 2016

SAP UI5 General Coding Guidelines

The   following   blog   explains   some   of   the   coding   standards   that   should   be   followed   while   coding   for   SAP    UI 5  applications . 1. Routing   and   navigation : As   far   as   possible ,  try   to   work   with   navigation   using   component   based   routing .  Further   if   an   application   requires   more   navigation   within   split   apps   like   a   double   master   or   double   detail ,  use   the   event   bus   mechanism .  The   navigation   handling   of   the   event   bus   should   be   specific   to   that   split   app   controller   and   named   uniquely   to ...

How to create Component-preload.js files for Fiori Applications

1           Creating Component-preload.js file 1.1       Use of Component-preload.js: Component-preload.js is a minified , obfuscated and uglified file that gathers all the sources of an application to minimize server requests and drastically reduce the application size. Once the development of an application is finished, the resources should be compressed into that file and deployed on the server.   Creating the file: The steps required to create the file could be found on http://scn.sap.com/community/mobile/blog/2014/12/10/building-fiori-like-app-in-component-preloadjs . Below is a summary of the steps, plus an additional step which I found necessary to make things work. 1-     Download and install Node.js   http://nodejs.org/download/ . Once the installation is complete you can check it by running the following command in the command prompt: npm –v 2-     I...