You need to sign in to do that
Don't have an account?
One Page Only - Need Exact Coding to allow Visualforce PDF dataTable Sort By Default (name)
I am creating a simple app that will manage Sent and Received documents for Projects.
I have set up the master custom object called Project and have two detail custom objects related to the master object called Sent and Received.
The Sent and Received are sorted by default in Force.com but not in the visualforce PDF page.
Based on the attached code from my VF page, i need a price by to provide the exact coding needed to allow sorting by default (name) for my two dateTables.
I need the exact coding for this VF page and any necessary components or controllers.
I work in South San Francisco and live in the Walnut Creek Area. I can travel to the San Jose area if needed. I also frequently use webex and can set up a meeting and share my desktop to verify whether or not the code works. I am available from 7am to 10pm any day.
Thank you in advance. Reply by email through econtractorpro@gmail.com
Sean.
<apex:page standardController="Project__c" sidebar="false" showHeader="false" renderAs="pdf" standardStylesheets="false"> <apex:stylesheet value="{!$Resource.customCSS}" /> <hr></hr> <h2>PROJECT SUMMARY</h2> <hr></hr> <p>INFORMATION</p> <hr></hr> <table style="width: 100%;"> <tr><td style="width: 25%;">Project Name:</td><td style="width: 75%;">{!Project__c.Project_Name__c}</td></tr> </table> <table style="width: 100%;"> <tr><td style="width:25%;">Project Owner:</td><td style="width: 40%;">{!Project__c.Project_Owner__c}</td> <td style="width: 20%;">Owner Project No.:</td><td style="width: 15%;">{!Project__c.Owner_Project_No__c}</td> </tr> </table> <table style="width: 100%;"> <tr> <td style="width: 25%;">Contractor:</td><td style="width: 40%;">{!Project__c.contractor__c}</td> <td style="width: 20%;">Contractor Project No.:</td><td style="width: 15%;">{!Project__c.name}</td> </tr> </table> <hr></hr> <p>SENT</p> <hr></hr> <apex:dataTable value="{!Project__c.Sent__r}" var="item" border="1" cellpadding="1" width="100%" style="text-align:center"> <apex:column > <apex:facet name="header">Transmittal No.</apex:facet> <apex:outputText value="{!item.Name}"/> </apex:column> <apex:column > <apex:facet name="header">Revision No.</apex:facet> <apex:outputText value="{!item.Revision_No__c}"/> </apex:column> <apex:column > <apex:facet name="header">Date</apex:facet> <apex:outputText value="{0,date,MM'/'dd'/'yyyy}"> <apex:param value="{!item.Date__c}" /> </apex:outputText> </apex:column> <apex:column > <apex:facet name="header">Title</apex:facet> <apex:outputText value="{!item.Title__c}"/> </apex:column> <apex:column > <apex:facet name="header">Information</apex:facet> <apex:outputText value="{!item.Information__c}"/> </apex:column> </apex:dataTable> <hr></hr> <p>RECEIVED</p> <hr></hr> <apex:dataTable value="{!Project__c.Received__r}" var="item" border="1" cellpadding="1" width="100%" style="text-align:center"> <apex:column > <apex:facet name="header">Transmittal No.</apex:facet> <apex:outputText value="{!item.Name}"/> </apex:column> <apex:column > <apex:facet name="header">Revision No.</apex:facet> <apex:outputText value="{!item.Revision_No__c}"/> </apex:column> <apex:column > <apex:facet name="header">Date</apex:facet> <apex:outputText value="{0,date,MM'/'dd'/'yyyy}"> <apex:param value="{!item.Date__c}" /> </apex:outputText> </apex:column> <apex:column > <apex:facet name="header">Title</apex:facet> <apex:outputText value="{!item.Title__c}"/> </apex:column> <apex:column > <apex:facet name="header">Information</apex:facet> <apex:outputText value="{!item.Information__c}"/> </apex:column> </apex:dataTable> <hr></hr> </apex:page>
This issue has been resolved.
All Answers
This issue has been resolved.
.... How was it resolved?