Page 1 of 1

trackerService in javascript block

Posted: Fri Jul 07, 2017 1:16 pm
by thomas.boll
Hello,

can someone help me how to use the $trackerServer in javaScript block.
I what to modify something in a Workitem, when I click on a button.

Code: Select all

<button id="button1" onclick="ChangeState('$wi.getId()');">Click</button>
<script type="text/javascript">
   function ChangeState(wi)
   {
      Change state of workitem wi
   }
</script>
 


Hope someone has already a solution for that.

Best regards
Thomas

Re: trackerService in javascript block

Posted: Fri Jul 14, 2017 5:45 pm
by smarty
Hello Thomas,
this post has an example, based on the FMC Workitemsave extension

Regards, Martin

Re: trackerService in javascript block

Posted: Tue Mar 13, 2018 7:08 pm
by stewarca
Hey Thomas,
Were you able to create a button that runs custom Javascript?

Casey