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
sfdev1sfdev1 

Button to Apex Class

How does on connect a button to an Apex class?
Mehmet_ErgunMehmet_Ergun

One way is to define a class a a web service and call it using the Ajax Toolkit in javascript on the button.

 

U can see the sample in the cookbook p. 25

http://wiki.developerforce.com/index.php/Force_Platform_Cookbook