You need to sign in to do that
Don't have an account?
shalini sharma 24
populate the opportunity name field as clickable in lightning dataTable
Hi,
I want to display the opportunity records with fields Oppotunity Name, Type in the lightniing dataTable. In that table, the opportunity Name column should be clickable and redirect to record detail page.
I want to display the opportunity records with fields Oppotunity Name, Type in the lightniing dataTable. In that table, the opportunity Name column should be clickable and redirect to record detail page.
apex : lightning component: controller :
helper :
Note : we are using $A.get("e.force:navigateToSObject") event, This event is handled by the one.app container. It’s supported in Lightning Experience, Salesforce app, and Lightning communities.
Output :
Thanks, kindly let us inform if it helps you
http://sfdcmonkey.com
component: controller:
The only drawback of this is that the record opens in the same tab. But I am sure there must be a work around to this issue(or it must be a bug with Salesforce). But this definitely is an acceptable solution.