Hi
I have created following js library:
var Sdk = window.Sdk || {};
(function () { this.triggerworkflow = function (executionContext) { var formContext = executionContext.getFormContext(); var triggervalue = formContext.getAttribute("acc1_triggerwf"); var oldvalue = triggervalue.getValue(); var newvalue = ++oldvalue; triggervalue.setValue(newvalue); formContext.data.entity.save(); } }).call(Sdk);
If I call this function on form load it works as intended, the issue is when I try to associated with a button using ribbon workbench, nothing happens.
Any ideas?
Thank you
Decio