Skip to main content
Solved

How we can write client script to change the task status after clicking on custom button from IFS FSM mobile??

  • September 1, 2022
  • 3 replies
  • 198 views

Forum|alt.badge.img+3

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??

Best answer by nimesha.kalinga

Hi @Akifscommunity,

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.

View original
Did this topic help you find an answer to your question?

Forum|alt.badge.img+4

Hi @Akifscommunity,

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.


Shneor Cheshin
Superhero (Employee)
Forum|alt.badge.img+28

Hey @nimesha.kalinga 

Can you please say, where can I get this document? 

Please refer the “Example 10—Script-Based Transaction” on the Mobile Client Script Documentation on the correctly usage/example of the above functionality.

 

Cheers!


Forum|alt.badge.img+4
Shneor Cheshin wrote:

Hey @nimesha.kalinga 

Can you please say, where can I get this document? 

Please refer the “Example 10—Script-Based Transaction” on the Mobile Client Script Documentation on the correctly usage/example of the above functionality.

 

Cheers!

Hi @Shneor Cheshin ,

You can find the documentation on the Client Scripts screen in FSM Smart Client. Under the Question Mark Button → “Mobile and Smart Client Scripts”

 

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings