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
KRamaKRama 

How to use Visualforce on Custom objects

I have created an custom object and am trying to use visual force to show the details. I keep getting error that the object is not available. If I use the same on an object that is there by default it works.

Why am I not able to do the same to my custom objects?

 

(I was trying some examples with the pdf file on visual force)

Best Answer chosen by Admin (Salesforce Developers) 
amar joshiamar joshi

well as i understand from your post the solution like as under

 

all the custom object are refernced through API name.. suppose your custome object name is myobject then its API name is myobject__c (double underscore)  so your VF code like this

<apex:page standardcontroller="myobject__c"> rest of your code.. </apex:page>

 

 

All Answers

amar joshiamar joshi

well as i understand from your post the solution like as under

 

all the custom object are refernced through API name.. suppose your custome object name is myobject then its API name is myobject__c (double underscore)  so your VF code like this

<apex:page standardcontroller="myobject__c"> rest of your code.. </apex:page>

 

 

This was selected as the best answer
KRamaKRama

Thanks Amar,