Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 143529

Custom Javascript action (Ribbon workbench)

$
0
0

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



Viewing all articles
Browse latest Browse all 143529

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>