You need to sign in to do that
Don't have an account?
SilverSurfer
Calling batch apex process from a controller
I want to invoke a btach process from a VF page controller. The results are to be displayed to the user for the further processing. I did try out calling it the normal way as :
ID batchprocessid = Database.executeBatch(new BatchableClass(query));
It is not working. Any pointers will be highly appreciated. Thanks in advance.
Regards.
According to the apex docs:
Important: When you call Database.executeBatch, Salesforce.com only adds the process to the queue at thescheduled time. Actual execution may be delayed based on service availability.
You can track the progress of the job using a query such as the following:
Hi bob_buzzard ,
Thanks for your reply. My basic concern is to invoke a batch process from a VF page controller. I want to display the results of a batch process in a VF page using a custom controller. I am not able to pass the list to the batch process.
Regards.
Can you clarify what you mean by "I am not able to pass the list to the batch process."?
What list is this?