You need to sign in to do that
Don't have an account?
cher
Alert after the successful execution of javascript
Hi,
I am executing the apex job from a detail page button below is the code :
{!REQUIRESCRIPT("/soap/ajax/29.0/connection.js")}
{!REQUIRESCRIPT("/soap/ajax/29.0/apex.js")}
var url = parent.location.href;
var scr="updateSalesTeamValuesonKeyMessage updatekeys = new updateSalesTeamValuesonKeyMessage(); " +
" database.executebatch(updatekeys); ";
var result = sforce.apex.executeAnonymous(scr);
I want the user to get a message stating "the reqeusted job as completed" after successful execution of the apex job. Let me know if there is a way to do this.
I am executing the apex job from a detail page button below is the code :
{!REQUIRESCRIPT("/soap/ajax/29.0/connection.js")}
{!REQUIRESCRIPT("/soap/ajax/29.0/apex.js")}
var url = parent.location.href;
var scr="updateSalesTeamValuesonKeyMessage updatekeys = new updateSalesTeamValuesonKeyMessage(); " +
" database.executebatch(updatekeys); ";
var result = sforce.apex.executeAnonymous(scr);
I want the user to get a message stating "the reqeusted job as completed" after successful execution of the apex job. Let me know if there is a way to do this.
You can do this query looping every X seconds: if you find a record than you're done!
Hope this could help
--
May the Force.com be with you