You need to sign in to do that
Don't have an account?
Jerun Jose
Updating page with status of a long transaction
Hi,
I am working on a visualforce page which is used to integrate SFDC data with an external system.
The integration process involves multiple callouts (about 5) which can take up a lot of time. Is it possible to update the visualforce page to display the status of the transaction?
Say if the method which is called from the page is
public someReturn someMethod(){ method1(); // say status is s1 method2(); // say status is s2 method3(); // say status is s3 method4(); // say status is s4 method5(); // say status is s5 }
How can we display the status of the method 'someMethod' to update the page with the statuses s1, s2 ..
Any suggestions are welcome.
Thanks,
Jerun Jose
I never used this tag but think it can be helpful for you.
See documentation.
I think it can be possible to do something like this:
Page:
Controller:
Hi,
I tried your approach and it isnt working. I did a bit of experimentation myself and think I have a basic problem here.
My VF page code is :
A simplified apex code behind this is
The actionPoller for refreshStatus is running and updates the current time properly using the NOW() function, but it is not able to fetch the latest value for count.
Even the debugs for the poller show the count value of initial 0.
After a while though, the "bigMethod" completes and returns the pageReference, but all the while the count in the debug and the outputText stay 0.
Can anyone explain why ??
Thanks,
Jerun Jose