You need to sign in to do that
Don't have an account?

call the batchapexclass from visualforcepage button
I want to call the batchapex calss using visualforcepage on the time of clicking the button in visualforcepage.........
Thanks
==========
VenkatSforce
Thank you
Niks
Batchapexclass contains three methods start,execute,finish these are all assigned as global with parameter as Database.BatchableContext,then how to call?plz any examples.....Niks
thanks
===========
VenkatSforce
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_batch_interface.htm
Thank you
Nik's
It shows error ...Method does not exist or incorrect signature: Batchexamupdate.start() ,Batchexamupdate is my batchapexcalss name...
ID batchprocessid = Database.executeBatch(objBatchexamupdate);
you need to start in this way .. it will call start method --> then execute -> then --> finish..
Thank you
Nik's
Batchexamupdate objBatchexamupdate = new Batchexamupdate(); ID batchprocessid = Database.executeBatch(objBatchexamupdate);
I Use ths code n Controller class as batchcall,it shows the error as constructor not defined for Batchexamupdate...
public Batchexamupdate()
{
}
Done.
Thank you
Nik's