You need to sign in to do that
Don't have an account?
SalesForce_52436
Display Table based on object selected
I have written a lightning component to display the picklist values.But i want to display data in tables based on object selected in the picklist.
This is the reference image.Please help me how to achieve this?
This is the reference image.Please help me how to achieve this?
I trust you are doing very well.
Below is the sample code which I have tested in my org and it is working fine. Kindly modify the code as per your requirement.
1. This code is to display all fields of an object:
Component:
Controller:
CSS:
Apex:
2. This code is to display records of an object:
Component:
Controller:
CSS:
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.
Thanks and Regards,
Khan Anas
i want to use event here ,so that on selecting any object its fields will be shown in second component ,how could it be done ...please help
Khan Anas ,
i want to use event here ,so that on selecting any object its fields will be shown in second component ,how could it be done . and that feild hove to clone to source object ...can u please help me with this