Modify generated JavaScript code to customize the Hybrid App.
- Use the Hybrid App Package Generation wizard to generate the Hybrid App package and its files.
 When the Hybrid App package is
               generated, the Custom.js file is generated if
               not already present in the project. The Custom.js file is located in Generated
                     Hybrid App\<hybridapp_project_name>\html\js.
 
- Right-click the Custom.js file and select
                              the editor in which to open the file.
 
- Modify the JavaScript code in the file or add your own code.
                              
                        
 
- Save and close Custom.js.
 Since Custom.js is generated only if it
                              is not already present in the Hybrid App project, it is not created again if you
                              subsequently generate the Hybrid App package. In this way, your customizations
                              are preserved.
 
- Deploy the Hybrid App package to
                  SAP Mobile Server.
 Any time you customize the code, you must redeploy the Hybrid App package to
                  SAP Mobile Server.
 You can also add your own separate JavaScript files to Generated
                     Hybrid Apps\hybridapp_project_name\html\js,
               then add custom code to the Custom.js file that calls the
               functions in the JavaScript files you added. Modularizing your custom code can
               prevent the Custom.js file from becoming too long, and make it
               easier for multiple developers to collaborate on the same
                  Hybrid App.