Adding Custom Code

Use JavaScript code to customize the Mobile Workflow application.

  1. Use the Mobile Workflow Package Generation wizard to generate the Mobile Workflow package and its files.
    When the Mobile Workflow package is generated, the Custom.js file is generated if not already present in the project. The Custom.js file is located in Generated Workflows\<workflow_project_name>\html\js.
  2. Right-click the Custom.js file and select the editor with which to open the file.
  3. Add your JavaScript code.
    You can also add your own separate JavaScript files to Generated Workflows\<workflow_project_name>\html\js, then add custom code to the Custom.js file that calls the functions in the JavaScript files you added. This prevents the Custom.js file from becoming extremely long, which makes it difficult if multiple developers are working on the same Mobile Workflow application simultaneously.
  4. Save and close the Custom.js file.
    Since the Custom.js file is generated only if it is not already present in the Mobile Workflow project, this file will not be re-generated if you subsequently re-generate the Mobile Workflow package, so any modifications you make are preserved.
  5. Deploy the Mobile Workflow package to Unwired Server.