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.
- Generate the Mobile Workflow package and its files.
- 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.
- Copy an image to the images folder.
- In the Mobile Workflow Forms editor, add a menu item to the Mobile Workflow.
- 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;
}
- Save and close the Custom.js file.
- Deploy the Mobile Workflow package to Unwired Server.