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
intern2424intern2424 

New to salesforce, have a question about visualforce page.

Hi, I am learning about visualforce pages and was wondering how to display an custom object i created. I created an custom object called contact and the api is called contact__c. And within this object, I have a field named Contacts Name and four custom fields called phone, address, age and zip. I created 30 contacts and want to display them in a visualforce page I am trying to create. Then I want to create another forum and put the results of the Min, Max, Average age of the contacts and how many contacts there are. 

 

Thanks for any help you can give. 

Message Edited by intern2424 on 10-31-2009 03:36 PM
bob_buzzardbob_buzzard

The best place to start is the VisualForce Developer Guide.

 

There is a section very near the beginning entitled "Displaying Field Values on a Page" that covers rendering field values from an object.

intern2424intern2424
I figured it out. But the only problem I am having trouble with is the average. I want to do SELECT AVG(Height) FROM Person but I think that SOQL can not do that. I was wondering if there is another way of doing that.