You need to sign in to do that
Don't have an account?
AndreiG
Display records from a custom object?
Hi! I would like to display data with VFpage from a custom object. A table with the all records. How can I do that? Do I need to set a custom controller.
Thanks
AG
You have a single underscore character there - custom objects require two underscores:
Catalog__c (rather than Catalog_c)
All Answers
You shouldn't need a custom controller for this, although it does depend on your exact requirements.
I'd suggest you take a look at the Visualforce Developer's Guide, Standard List Controllers section. This has some really good examples that may fit your requirements (including pagination etc).
You can find this section at:
http://www.salesforce.com/us/developer/docs/pages/index_Left.htm#CSHID=pages_controller_sosc_about.htm|StartTopic=Content%2Fpages_controller_sosc_about.htm|SkinName=webhelp
Thanks for a quick reply! Yes I using this guide. But...
The custom object name is "Catalog"
when I write: <apex:page standardController="Catalog" ........ it shows
Can you guide me what I am doing wrong...
Thanks!
Your custom object API name will have an __c appended to distinguish it from standard objects.
Thus you'd have:
Thank you. i have tried it also before, but it didn't work too. It doesn't matter "Catalog" or "Catalog_c", it just doesn't work. The custom object exists and has the name "Catalog"
Any idea?
You have a single underscore character there - custom objects require two underscores:
Catalog__c (rather than Catalog_c)
It worked! Thanks a lot! :smileyhappy: