Altova MobileTogether Designer

Take Screenshot Of

Home Prev Top Next

The Take Screenshot Of action (screenshot below) takes a screenshot of the page, a table row group, or a control and saves the image to a page source node as a Base64 image. You can set the action on an event, for example, a button click. When the event is triggered, the screenshot is taken, and the image saved to a node in a page source. The image can then be used from that node as required.

MTActionTakeScreensheetOf

The settings of the action are as follows:

 

Take Screenshot Of: Options are (i) the current page, (ii) a row group of a table, or (iii) a control located on the current page, which is chosen from the dropdown list that appears when the Control option is selected. Note that, in the case of table row groups, only those rows that currently appear in the table will appear in the screenshot.

Format: Options are PNG or JPG. Note, however, that the screenshot will be stored to a page source as a Base64 image. You can subsequently save the image to file with the Save Image to File option of the Load/Save Image action.

Quality: Specifies image quality. Values can be integers from 1 (lowest quality) to 100 (highest quality). Note that higher quality images have a larger file size.

Target Node: This is the page source node in which the Base64 format of the image will be stored. You can now use the data in this node to display the image in the design and/or save the image to file

 

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.

 

mt-base64-to-hexBinary()

mt-hexBinary-to-base64()

mt-hexBinary-to-string()

mt-change-image-colors()

mt-image-width-and-height()

mt-string-to-hexBinary()

mt-transform-image()

 

© 2020-2026 Altova GmbH