[progress Communities] [progress Openedge Abl] Forum Post: Re: Running Trigger From Custom...

  • Thread starter Thread starter Chandrasekhar Gontla
  • Start date Start date
Status
Not open for further replies.
C

Chandrasekhar Gontla

Guest
Hi intekra, I understood the problem. If you are using callback function inside rbf_runTrigger() method, then you need to define that function. Otherwise, you will get the error saying 'VM11980:2 Uncaught ReferenceError: callback is not defined' in the browser console. Note: Click on F12 to launch browser console and then execute the button. You can find the error. To avoid the above error, you need to pass null to callback parameter like below rbf_runTrigger("Invoice28", "{!id}", "cPJe0SogQzq8uNsNqn1EqQ", false, null, false); And, you can refresh the page automatically using below code. setTimeout(function (){location.reload(true);}, 3000);// This will refresh the page after 3 seconds And, if you want to use callback method, you can do it in this way. rbf_runTrigger("emp6", "{!id}", "LpAOUu65TmiZWInmLFTvfQ", false, callback, false); function callback(status){ console.log(status); setTimeout(function (){location.reload(true);}, 3000); } Thanks and Regards, Chandu.

Continue reading...
 
Status
Not open for further replies.
Back
Top