Override Salesforce view action with lightning component

I spent a lot of time to time the way to override Salesforce standard record view action with Lightning component and finally I have found the following information:
https://releasenotes.docs.salesforce.com/en-us/summer17/release-notes/rn_lightning_action_overrides.htm

To make Lightning Component Bundle dropdown list not empty here
overrideView
one has to create a Lightning component which implements lightning:actionOverride interface.

Also it is useful to implement force:hasRecordId and force:hasSObjectName interfaces.

    <aura:component implements="lightning:actionOverride,force:hasRecordId,force:hasSObjectName">

You don’t need to create attributes recordId and sObjectName

    <aura:attribute name="recordId" type="String" />
    <aura:attribute name="sObjectName" type="String" />
Advertisements
This entry was posted in lightning, salesforce, Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s