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
lordsonlordson 

Does anyone know how to dynamically get listIds from Enhanced Lists?

my page having two list views of a same object type
<apex:page>
<apex:enhancedList type="custom__c" height="300" listId="00BM0000000LbS1" />

<apex:enhancedList  type="custom__c" height="300" listId="00BM0000000wSbc" />
</apex:page>

when i do packge and install in different org, enhanced list is  not working, getting error on page as the list id is org specifice .

If i am able give view name insted of id then no issue, but i don know how to do.? is that possible to give view name insted of id. any workarround for this issue?

kindly give me any solution for this.

ManjunathManjunath

Hi,

 

I dont think you need the listid, it is required if type is not given. Since you have given type remove the id.So try removing that and do the package.

 

Regards,

Manjunath

lordsonlordson

hi Manjunath,

 

Yeah, that i know.

if you read my code there is two list views(based on criteria )  for the same custom object in a same page(means we require two grids).

 

Thanks,

Stephen