Hi all,
This is a tip on how to create a custom button in a form or query header that starts a process.
There are 2 options:
Option 1, extjs icon button:
Add the script below to the advanced script settings and you can choose a extjs icon that starts a process (You can also set e.g tooltip etc. In the example below, the help icon is used.):
"config.tools.push ({ type: 'help',tooltip: 'Tooltip' handler:function () { AwareApp.startProcess('MyProcess') }});"
Option 2, button:
Add the script below to the advanced script settings and you add a button that starts a process (You can also set e.g button text, tooltip etc. and I imagine it´s also possible to set an image in the button and If any of you do this, please share how you did it.):
"config.tools.push ({ xtype: 'button',text:'Text',tooltip:'Tooltip', handler:function () { AwareApp.startProcess('MyProcess') }})"