Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
Can we call batch apex class which implements Database.Batchable. on button click(custom button) or visual force tab?
yes we can do that by executing a JavaScript to call a Global class that will inturn run your Batch apex class.
Can u give me the sample code blocks..
global class FinalizeTempLNK { WebService static void ExecuteFinalizeTemp(
{!REQUIRESCRIPT("/soap/ajax/10.0/connection.js")} {!REQUIRESCRIPT("/soap/ajax/10.0/apex.js")} sforce.apex.execute("FinalizeTempLNK ","ExecuteFinalizeTemp",{ });
){ String query = 'Select Id,isTemp__c from Cheque__c' ; Finalize_Temp batchApex = new Finalize_Temp (query ); ID batchprocessid = Database.executeBatch(batchApex); }
Above is the globall class to call the batch apex class.
yes we can do that by executing a JavaScript to call a Global class that will inturn run your Batch apex class.
Can u give me the sample code blocks..
Above is the globall class to call the batch apex class.