Edited: 9/23/2018 4:48 AM | |  | |
|
| System Account |
| How can I repsond to an approval task within the form through SPARK? is there is any way that i can repsond to an approval task of a workflow designed by sharepoint designer therough SPARK forms, i want the user to open a section within this form and aprrove or reject the request. |
Mike Odeh
| /_layouts/15/images/person.gif" alt="Picture Placeholder: System Account" /> | System Account |
| is there is any way that i can repsond to an approval task of a workflow designed by sharepoint designer therough SPARK forms, i want the user to open a section within this form and aprrove or reject the request. | | | | 76 | 4 | 9/20/2018 8:47 AM | 9/23/2018 4:48 AM | No | Codes & Scripts | 7.30565376194352 | 3 | | 9/20/2018 8:47 AM | | 1 | Jim Hidson |
 |
Posted: 9/23/2018 2:48 AM | |  | |
|
| Jim Hidson |
| Hi Mik, You can do that using the updateCurrentUserTask() function, you can change its parameters to have approve or reject actions.
also you can get the current form's user task ID and Task name using the folloing functions:
getCurrentUserTaskID()
getCurrentUserTaskName()
the following example show how to use the fuction in a proper way:
updateCurrentUserTask('Tasks',getCurrentUserTaskID(), true, 100,'Completed', 'Approved', 'Approved')
|
Note that this function works on sharepoint designer designed workflows and not on Nintex. |
Jim Hidson
| http://www.itlaq.com:80/my/User%2520Photos/Profile%2520Pictures/jim_MThumb.jpg?t=63627189186" alt="Picture: Jim Hidson" /> | Jim Hidson |
| Hi Mik, You can do that using the updateCurrentUserTask() function, you can change its parameters to have approve or reject actions.
also you can get the current form's user task ID and Task name using the folloing functions:
getCurrentUserTaskID()
getCurrentUserTaskName()
the following example show how to use the fuction in a proper way:
updateCurrentUserTask('Tasks',getCurrentUserTaskID(), true, 100,'Completed', 'Approved', 'Approved')
|
Note that this function works on sharepoint designer designed workflows and not on Nintex. | | Mike Odeh | 33 | | 0 | 9/23/2018 2:48 AM | 9/23/2018 2:48 AM | | | | | | 9/19/2018 7:49 AM | | 1 | Mike Odeh |
 |
Posted: 9/23/2018 3:15 AM | |  | |
|
| Mike Odeh |
| Could you show me how to set it inside button click function? |
Mike Odeh
| http://www.itlaq.com:80/my/User%2520Photos/Profile%2520Pictures/mike_MThumb.jpg?t=63624568071" alt="Picture: Mike Odeh" /> | Mike Odeh |
| Could you show me how to set it inside button click function? | | Mike Odeh | 33 | | 0 | 9/23/2018 3:15 AM | 9/23/2018 3:15 AM | | | | | | 9/20/2018 8:47 AM | | | |
 |
Posted: 9/23/2018 3:16 AM | |  | |
|
| Jim Hidson |
| Of course Mike! create a rule with [Action] Type and Event [onLoad] write the following code in the Action script area: function Approvetask() { updateCurrentUserTask('Tasks',getCurrentUserTaskID(), true, 100,'Completed', 'Approved', 'Approved') }
onClick(Button1,
Approvetask())
|
Jim Hidson
| http://www.itlaq.com:80/my/User%2520Photos/Profile%2520Pictures/jim_MThumb.jpg?t=63627189186" alt="Picture: Jim Hidson" /> | Jim Hidson |
| Of course Mike! create a rule with [Action] Type and Event [onLoad] write the following code in the Action script area: function Approvetask() { updateCurrentUserTask('Tasks',getCurrentUserTaskID(), true, 100,'Completed', 'Approved', 'Approved') }
onClick(Button1,
Approvetask())
| | Mike Odeh | 33 | | 0 | 9/23/2018 3:16 AM | 9/23/2018 3:16 AM | | | | | | 9/19/2018 7:49 AM | | 1 | Mike Odeh |
 |
Posted: 9/23/2018 3:17 AM | |  | |
|
| Mike Odeh |
| |
Mike Odeh
| http://www.itlaq.com:80/my/User%2520Photos/Profile%2520Pictures/mike_MThumb.jpg?t=63624568071" alt="Picture: Mike Odeh" /> | Mike Odeh |
| | | Mike Odeh | 33 | | 0 | 9/23/2018 3:17 AM | 9/23/2018 3:17 AM | | | | | | 9/20/2018 8:47 AM | | | |
 |