function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Chris CalhounChris Calhoun 

Simple page on force.com site example displaying data

controller:
public with sharing class CustomerChallengeController2
{
public list<CustomerChallenge__c> chall{get;set;}
public list<CustomerChallenge__c> CustomerChallengeController2()
{
  if(chall == null)
   {
    chall =
    [SELECT Name, AIM_Branch__c, AIM_Division__c, Contact__c, File_Number_Directing__c, File_Number_Non_Directing__c, Transaction_Date_Directing__c, Transaction_Date_Non_Directing__c
    FROM CustomerChallenge__c];
   }  
   return chall; 
}
}

page:
<apex:page controller="CustomerChallengeController2">
<apex:form >
  <apex:pageBlock title="Customer Conversion Challenge">
   <apex:pageBlockTable value="{!chall}" var="c">  
    <apex:column headervalue="Name" value="{!c.Name}"/>  
    <apex:column headervalue="Contact" value="{!c.Contact__r.Name}" />
    <apex:column headervalue="File Number" value="{!c.File_Number_Non_Directing__c}" />
    <apex:column headervalue="Non Directing Date" value="{!c.Transaction_Date_Non_Directing__c}" />  
 
   </apex:pageBlockTable>
  </apex:pageBlock>
</apex:form>
</apex:page>
James LoghryJames Loghry
Is there an actual question here, or are you just dumping your code for others to see?
Chris CalhounChris Calhoun
Sorry, i got interrupted during the post. The example is NOT working.
I'm only getting column headers but no data.
The page looks like this:
Customer Conversion Challenge
Name         Contact           File Number              Non Directing Date


Thanks,

Chris