axSignaturePad

Description

axSignaturePad allows a signature pad extension to be inserted into the 5250 screen.

Usability

Context

Supported

Input screen fields

No

Output screen fields

No

Input subfile fields

No

Output subfile fields

No

New screen elements

Yes

Properties

onButtonClear

Event that fires when the clear button is clicked.Yes

Name

Description and Comments

JavaScript

Shipped default

imagePath

 

Path to locate the signature base64 image file. the imagePath is a sub folder relative to /ts/screens/&ltproject_name&gt/ No /media

imageName

Name of the signature base64 image file No signature_img

onButtonSave

Event that fires when the save button is clicked. Yes  

onScreenReady

JavaScript code that is to be executed every time layout render of all extension is completed. Yes None

saveMode

Mode of saving signature image. Yes Save To IFS

text

Text applied to signature pad No Sign Above

Notes, Comments and Warnings

The properties – imagePath and imageName is only used when saveMode is “Save To IFS” options property is selected.
imagePath is a subfolder relative to the project folder. example: IFS/&ltaXes_Instace&gt/ts/screens/&ltproject_name&gt/.

Examples

(1). change the text property to "Sign Here…"

(2). edit onButtonClear property and add the code below

window.alert("The clear button was clicked");

then clicking on the clear button should produce an alert window.
When you clicked ok button on the alert window, it will clear the signature canvas image.

(3). edit onButtonSave property and add the code below
this._signaturePad.toDataURL() method give you access to the base64 image data.

window.alert( this._signaturePad.toDataURL() );

then clicking the save button will show the base64 image data on alert window..

Note: the axSignaturePad extension is based on a Signature Pad a JavaScript library for drawing smooth signatures from Szymon Nowak(szimek ). See https://github.com/szimek/signature_pad

Administrators

Legal Mentions

aXes is brought to you by:

LANSA

Serving the IBM i community for 30 years.