SHARE
TWEET

AccountExtension.cls

a guest Aug 22nd, 2013 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class AccountExtension {
  2.  
  3.         private ApexPages.StandardController standardController;
  4.  
  5.     public AccountExtension(ApexPages.StandardController standardController) {
  6.         this.standardController = standardController;
  7.         this.standardController.addFields(new List<String>{'Name'});
  8.     }
  9.  
  10.     public Pagereference reverseName() {
  11.         Account record = (Account) standardController.getRecord();
  12.         record.Name = record.Name.reverse();
  13.        
  14.         update record;
  15.        
  16.         return this.standardController.view();
  17.     }
  18. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top