I'm using IFS FSM Mobile. How we can write client script to change the task status after clicking on custom button from IFS FSM mobile instead of using action status bar??
Solved
How we can write client script to change the task status after clicking on custom button from IFS FSM mobile??

Best answer by nimesha.kalinga
Hi
From which screen you are planning to add the custom button? Is it on Debrief Overview?
If yes, you can simply use the function setControlValue and Save changes to update the task status.
If not and you need to modify the task_status within another screen, what I would suggest is to use generateDataTransaction , saveDataTransaction functions to achieve what you are asking.
Please refer the “Example 10—Script-Based Transaction” on the Mobile Client Script Documentation on the correctly usage/example of the above functionality.
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.