Posted By


d3developer on 08/06/10

Tagged


Statistics


Viewed 61 times
Favorited by 0 user(s)

@jeffdonthemic apex:datatable


/ Published in: Other
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <apex:dataTable value="{!accounts}" var="account" id="theTable">
  2. <apex:facet name="caption">table caption</apex:facet>
  3. <apex:facet name="header">table header</apex:facet>
  4. <apex:facet name="footer">table footer</apex:facet>
  5. <apex:column>
  6. <apex:facet name="header">Name</apex:facet>
  7. <apex:facet name="footer">column footer</apex:facet>
  8. <apex:outputText value="{!account.name}"/>
  9. </apex:column>
  10. <apex:column>
  11. <apex:facet name="header">Owner</apex:facet>
  12. <apex:facet name="footer">column footer</apex:facet>
  13. <apex:outputText value="{!account.owner.name}"/>
  14. </apex:column>
  15. </apex:dataTable>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.