You need to sign in to do that
Don't have an account?
Claire Sherry
"PDF generation failed. Check the page markup is valid." Apex data table
I have an apex data table to list cases related to a contract. However, I want to only display specific record types on the list. My current solution works fine, unless the most recent case (or first result of the list) is a different record type than specified. Then I get the above error.
It also works fine as a standard visualforce page, but rendered as a PDF, it fails.
Any ideas on what I am doing wrong?
Is there any workarounds?
It also works fine as a standard visualforce page, but rendered as a PDF, it fails.
Any ideas on what I am doing wrong?
Is there any workarounds?
<apex:page renderAs="pdf" showHeader="false" sidebar="false" standardStylesheets="false" applyBodyTag="false" applyHtmlTag="false" standardController="Contract"> <apex:dataTable value="{!Contract.Claims__r}" var="claim" id="claimTableInfo" width="100%" rowClasses="odd,even" styleClass="claimRecordsTable" border="solid" cellpadding="5px"> <apex:column rendered="{!if(claim.recordTypeID == '012b0000000Kr2VAAS','true','false')}" styleClass="claimRecordsTable" width="170px"> <apex:outputText value="{!claim.CaseNumber}"/> </apex:column> <apex:column rendered="{!if(claim.recordTypeID == '012b0000000Kr2VAAS','true','false')}" styleClass="claimRecordsTable" width="170px"> <apex:outputText value="{0,Date,dd/MM/yy}"><apex:param value="{!claim.Claim_Form_Recevied_Date__c}" /></apex:outputText> </apex:column> </apex:dataTable> </apex:page>
Thanks