Setting Status from an Action

オフライン

Hi all, I am currently trying to setStatus from an action. The status would be set after I right click and select the action from the relationship grid.
var statusId = aras.setStatus('Downloading.....', '../images/Progress.gif');
return this;

For some reason the status is not being updated accordingly and this is happening only when the method is attached to the action.

Other message Methods are working fine such as:

aras.AlertSuccess('Message Here');
aras.AlertError('Message Here');
aras.AlertWarning('Message Here');
aras.prompt('Message Here', 'Default').then(function(value) {
    if (value)
    {
        //Do somthing after enter text
    }
});

Even:

aras.clearStatus();

Any input on this would great!

Parents
  • Hello,

    I set up an action using your code in a test instance on my machine and stepped through it line by line. It looks like the status is actually being updated, but then some standard Innovator logic is resetting the status after the Action completes. To work around this, you could throw your login into a timeout so that the status is set after some number of milliseconds. I found 100 was good enough for my system, but you may need to play around with the delay based in your own system.

    setTimeout(function() {
    var statusId = aras.setStatus('Downloading.....', '../images/Progress.gif');
    }, 100); // <-- May need to increase this time if the status is still not updating

    Chris

    Christopher Gillis

    Aras Labs Software Engineer

Reply
  • Hello,

    I set up an action using your code in a test instance on my machine and stepped through it line by line. It looks like the status is actually being updated, but then some standard Innovator logic is resetting the status after the Action completes. To work around this, you could throw your login into a timeout so that the status is set after some number of milliseconds. I found 100 was good enough for my system, but you may need to play around with the delay based in your own system.

    setTimeout(function() {
    var statusId = aras.setStatus('Downloading.....', '../images/Progress.gif');
    }, 100); // <-- May need to increase this time if the status is still not updating

    Chris

    Christopher Gillis

    Aras Labs Software Engineer

Children