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
mknobmknob 

Start Apex-Code with button

Hi.

 

I've already lerned how to create a button with Visualforce. Now i want to execute Apex-Code with a button. How i do this?

David VPDavid VP

use the action attribute of the button and call a method in the underlying custom controller or controller extension.

 

Check out the first paragraph of this article for example :

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