Tag Archives: Apex Method of the Day

Apex Method of the Day – addFields

public class MyControllerExtn { public MyControllerExtn(ApexPages.StandardController c) { // include fields not referenced on the Visualforce page c.addFields(new List<String>{‘Foo__c’,’Bar__c’,’Force__c’}); } } Force.com Apex Code Developer’s Guide – StandardController Class Original Tweet

Posted in Documentation | Tagged , , | Leave a comment