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 "SMS employee"
5) Click on the "Screens" tab
Please note: This script uses the values of the fields FirstName, PhoneNB and these names need to be defined in the screens tab of TS2 development environment for the relevant fields.
Change Fields Names to FirstName, PhoneNB.
6) Edit script
Copy and paste the script hereunder in the edit box.
Code: Select all
if (window.LRSV)
{
var options =
{
messageText : ( "Please fill timesheet, " + FIELDS("FirstName").getValue() ),
recipient : FIELDS("PhoneNB").getValue()
};
LRSV.sendTextMessage( options );
}
8) open aXes mobile and run your demonstration