function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
nagalakshminagalakshmi 

How to get the job staus of batch apex class

Hi,

How to display the batch apex job status dynamically in to visualforce page.
I am able to display the status when job starts, but i am unable to get the job status dynamically.
Means when job statrt it is queued after that job status is inprogress, completed. I need status dynamically for every 60 seconds. Please help me.

 

Thanks,

Lakshmi

SF DEVSF DEV

Hi,

 

Even im working on Batch apex for the first. Can you please tell me how to test my batch class. i mean the execution process.

 

My task is to update the one of the object(OBJ 1) when its getting inserted with the same values of other objects(OBJ 2), then update the object(OBJ 1) wone of its field with  the id of object(OBJ 2) id.

 

 

can you please give me sample code.

Mohith Kumar ShrivastavaMohith Kumar Shrivastava

Have you gone through the Action Poller .Use ACtion Poller Tag of visualforce page and make an actionmethod that sets the boolean to true when the batch finishes .Now use that boolean to show status .Let me know if you need more help.