You need to sign in to do that
Don't have an account?
ForceRookie
How to create lightning component that will display all records in data table
Hi! Help me to create a lightning component that if I click the CustomObject tab, it will display all of its records in data table. Just similar layout if we click an Object tab.
I’m new to lightning. Any help will be appreciated.
I’m new to lightning. Any help will be appreciated.
Greetings to you!
Please try the below code, I have tested in my org and it is working fine. Kindly modify the code as per your requirement.
You can place this component on the detail page or you can create a 'Lightning Tab'.
Note: I have used Opportunity object, you can replace Opportunity with your custom object.
Component:
Controller:
Helper:
Apex:
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks and Regards,
Khan Anas
All Answers
Greetings to you!
Please try the below code, I have tested in my org and it is working fine. Kindly modify the code as per your requirement.
You can place this component on the detail page or you can create a 'Lightning Tab'.
Note: I have used Opportunity object, you can replace Opportunity with your custom object.
Component:
Controller:
Helper:
Apex:
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks and Regards,
Khan Anas
Do you have an idea also on how to make the Name clickable? And will direct to the onject’s record details?