The View Image action (screenshot below) causes the selected image to be displayed full screen in a new view. The end user can zoom into and out of the image, and can scroll the image both horizontally and vertically.
The image to display can be selected in one of the following ways:
•Base64 XPath: The XPath expression must either (i) contain the Base64-encoded text of the image, or (ii) select an XML page-source node that contains the Base64-encoded text.
•File: Enter the file path of an image file on the client machine. In the dialog box that appears, select the device directory in which the image file is located, and enter the name of the image file.
•Control: Select the control that holds the image. Allowed controls are Image, Chart, and Signature Field controls. Instances of these controls that have been created in the design are displayed by their names in the dropdown list of a combo box. Choose the control from the dropdown list.
•Current Control: Shows the image of the current control. The current control should be an Image or a Chart.
You can also select the following options:
•Whether the image should be displayed at original size or should fill the device screen. The fill-screen option enlarges or reduces the image size so that it fits the screen.
•Whether the image will be rotated according to its EXIF orientation information.
MobileTogether extension functions
MobileTogether provides a range of XPath extension functions that have been specifically created for use in MobileTogether designs. Some functions can be particularly useful with specific actions. For example, mt-available-languages() returns the languages in which the solution is available and could, for example, be used with the Message Box action. If a function is especially relevant to this action, it is listed below. For a full list of extension functions and their descriptions, see the topic MobileTogether Extension Functions.