Viewing an attachment as part of the Mobile Workflow Package

You can view an attachment such as an image, a Word document, a .pdf file, and so on as part of the Mobile Workflow package.

This procedure uses an image file as an example.

  1. Generate the Mobile Workflow package and its files.
  2. In WorkSpace Navigator, go to the location where the generated Mobile Workflow files are located and add an images folder under the html folder, for example, Generated Workflow\<Workflow_name>\html\images.
  3. Copy an image to the images folder.
  4. In the Mobile Workflow Forms editor, add a menu item to the Mobile Workflow.
  5. Open the Custom.js file with a text editor and edit the method customBeforeMenuItemActivate:
    if (screen === "ScreenKeyName" && menuItem === "ShowAttachment") {
    	showLocalAttachment("html/images/ipod.jpg");
            return false;
        }
    
  6. Save and close the Custom.js file.
  7. Deploy the Mobile Workflow package to Unwired Server.