Displaying the right imageAdded by IBM on October 10, 2012 | Version 1 (Original)
|The signature button must display one of two images: the blank image, or the signature image provided by the Silanis software. As with any button, the image option is used to set which image is displayed.
However, when using Silanis, a compute must also be used to determine which image to display.
This compute relies on the signer option in the button: if the signer option is empty, then the form has not been signed and the image option should be set to the blank image; if the signer option has any other value, then there is a signature present and the image option should be set to the image supplied by Silanis.
The following example shows a compute that makes this decision. In this case, the data items that contain the images are named BLANKIMAGE and SIGIMAGE:
<image compute="signer == '' ? 'BLANKIMAGE' :