1) Open aXes development environment

2) Load your project in TS2 and navigate to the screen you wish to customise
Click on "Work as a TS2 Developer"

Signon to your session

Type on the command line: "addlible axesdemo" followed by enter

Type on the command line: "call xhrrpgtrn" followed by enter

Put an X next to to an employee

If you don't have a screen definition, press suggest and save the screen.

3) Add a PushButton

4) Edit caption. Change the caption value to "Scan Action Barcode"

5) Click on the "Screens" tab
Please note: This script uses the values of the fields Action and these names need to be defined in the screens tab of TS2 development environment for the relevant fields.
Change Fields Names to Action.

6) Edit script

Copy and paste the script hereunder in the edit box.
Code: Select all
if (window.LRSV)
{
try
{
LRSV.scanPaste( { pasteTo : "Action" } );
}
catch (Error) { alert("Error using scanPaste service: ", Error.message); }
}

8) open aXes mobile and run your demonstration
