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
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