+ Start a Discussion
saisaisaisai 

VF PAge enhancedList question.

Hello

I have created a DemoObject1 with a couple of fields.

 

Then i am trying to create a VF Page with this content:

 

<apex:page >
<apex:enhancedList type="DemoObject1" height="350"/>
</apex:page>

 

It displays an error that DemoObject1 does not exist.

I have also added a couple of records for DemoObject1 successfully.

Just wondering why we r getting this error.

Please help.

Thanks

Sai

Best Answer chosen by Admin (Salesforce Developers) 
AmitSingh69AmitSingh69

Dear Saisai,

 

DemoObject1 is custom object so its API name is appended by __c, 

You need to use below code.

 

<apex:page >
<apex:enhancedList type="DemoObject1__c" height="350"/>
</apex:page>

 

 

Thanks