Skip to content

Instantly share code, notes, and snippets.

@Szandor72
Created May 24, 2017 17:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Szandor72/199aad931c51362d118a830989b42621 to your computer and use it in GitHub Desktop.
Save Szandor72/199aad931c51362d118a830989b42621 to your computer and use it in GitHub Desktop.
basic VF Extension template
public with sharing class AccountExtensionController
{
private ApexPages.StandardController standardController;
public AccountExtensionController(ApexPages.StandardController standardController)
{
this.standardController = standardController;
}
public void nextStep(){
Account myAccount = (Account) standardController.getRecord();
}
}
@Szandor72
Copy link
Author

<apex:page StandardController="Account" extensions="AccountExtensionController">
</apex:page>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment