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   avoid   multiple   listeners   for   the   same   navigation   bus . 2. Developing   views   in   application : While   it   is   not   mandatory   that   you   will   have   to   use   only   JSViews   in   all   the   applications ,  it   is   however   recommended   to   use   same   types   of   views   in   the   same   applications .  Different   types   of

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-     In the Node.js Command Prompt, type the following command: npm install –g gulp . This will install gulp and ma