3

A common reason for the non-functional buttons is the "Are you sure" javascript dialog that you might see encoded on a VF page commandButton like this: <apex:commandButton action="{!doSomething}" value="Do Something" onclick="if(!confirm('Are you sure?')){return false};" /> Not all of the ...


2

PageReference pdfPage2 = Page.pdfpage2; ... pdfBlob = pdfPage2.getContent(); This causes a new, separate instance of the controller to be loaded; it doesn't know about the variables in the original context. You need to give it the correct parameter: PageReference pdfPage2 = Page.pdfpage2; pdfPage2.getParameters().put('id', accId); Blob pdfBlob; if (!Test....


1

You need to modify your getter so it actually fetches the values from the object when requested. Here, I'm using a lazy load pattern. public List<Address__C> contactList { get { if (contactList == null) { contactList = [select CustomField1__c, CustomField2__c, ID1__c, ID2__c from CustomObject__c ...


Only top voted, non community-wiki answers of a minimum length are eligible