Another Salesforce blog!!!

Salesforce, Apex

ApexPages.StandardController

add the field api name in ApexPages.StandardController

LINK   public Payment_Response__c PaymentResponseObj {get;set;} public PaymentControllerExt(ApexPages.StandardController stdController) { stdController.addFields(new List<String>{‘Payee_SAP_No__c’, ‘Payee_Country__c’, ‘Invoice_Date__c’, ‘Amount_Currency__c’,stdController.addFields(new List<String>{‘Payee_SAP_No__c’, ‘Payee_Country__c’, ‘Invoice_Date__c’, ‘Amount_Currency__c’,                ‘Amount__c’, ‘WBS__c’, ‘GL_Code__c’, ‘Cost_Center__c’, ‘Company_Code__c’}); this.payReqObject = (Payment_Request__c)stdController.getRecord(); }