How to automatically trigger a microflow with progress bar

0
Hi   I would like to trigger a microflow automatically which shows a progress bar on screen while the microflow is running. (it’s a long microflow sometimes) I can’t do this with the microflow timer widget because this doesn’t give me the option of a progress bar.   Any ideas?   Kind regards Jonas
asked
1 answers
1

htmlsnippet

 

var pid=mx.ui.showProgress('wait...');
mx.data.action({
    params: {
        actionname: "MyFirstModule.PetCat"
    },
    origin: this.mxform,
    callback: dojo.hitch(this,function(obj) {
        mx.ui.hideProgress(pid);
    }),
    error: function(error) {
        mx.ui.hideProgress(pid);
        mx.ui.error(error.message);
    },
    onValidation: function(validations) {
        mx.ui.error("There were " + validation.length + " validation errors");
    }
});
answered