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
Natasha AliNatasha Ali 

Migrating over to lightning, I have a VF page code but I'm unsure how I can make it into a lightning component?

Hi,
I'm unsure how to go about doing this, I have the following VF code which I need as a lightning component as we are migrating over to lightning. Any help is much appreciated!!! Thank you! :)
 
<apex:page lightningStylesheets="true">
<apex:enhancedList type="Activity" height="700" customizable="True"/>
</apex:page>

 
Maharajan CMaharajan C
Hi Natasha,

We can use the lightning:listView tag.

Please refer the below Links:

http://biswajeetsamal.com/blog/salesforce-lightning-listview/

https://salesforce.stackexchange.com/questions/217854/lightninglistview-component-unable-to-display-list-views-from-managed-packages

http://www.infallibletechie.com/2018/03/lightninglistview-example.html

Can you please Let me know if it helps or not!!!

If it helps don't forget to mark this as a best answer!!!


Thanks,
Raj
Natasha AliNatasha Ali

Hi Raj,
Thank you for the prompt response. From the resources you put together, I wrote the following:

<aura:component implements="force:appHostable" >
 
    <lightning:listView type="Activity"
                        height="700" 
                        customizable="True"/>  

</aura:component>

Do you think that looks correct?


Many Thanks!!!! :)