You need to sign in to do that
Don't have an account?
Ravi kumar 292
How to call an Apex Class when clicking on Custom Button
Hi all,
I have a scenario. Whenever i click on a custom button it will call the apex class. The class consists of some webservice call. That means when i click on button it will call the webservice end point.. We can achieve this by creating VF page and Apex class but i dont want to create a VF page.
How to do this..
Help on this..
I have a scenario. Whenever i click on a custom button it will call the apex class. The class consists of some webservice call. That means when i click on button it will call the webservice end point.. We can achieve this by creating VF page and Apex class but i dont want to create a VF page.
How to do this..
Help on this..
- {!REQUIRESCRIPT("/soap/ajax/29.0/connection.js")}
- {!REQUIRESCRIPT("/soap/ajax/29.0/apex.js")}
- var result = sforce.apex.execute("InvoiceUtilities","renumberLineItems",{invoiceName:"{!
- Invoice__c.Name}"});
- alert(result);
- window.location.reload();
Apex Code for webserviceThis is great and I've used it for a couple of years now in a small way. i have recently had reason to extend the Apex Web service and have run into Code Coverage issues when deploying. The problem is I cannot get the tests to run the Web Service code and cannot figure out how to fire it from within the test class. Do you have any idea how I can do this?
Any help greatfully accepted.
Murry