Created
August 30, 2019 18:08
-
-
Save arun12209/bbccdb505a9fbb6915629f6cdd7c8ddd to your computer and use it in GitHub Desktop.
ViewAccountHeirarchyController
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
navigateToAccountHierarchy: function(cmp, event, helper) { | |
var acctId = cmp.get('v.recordId'); | |
var evt = $A.get("e.force:navigateToComponent"); | |
evt.setParams({ | |
componentDef: "sfa:hierarchyFullView", | |
componentAttributes: { | |
recordId: acctId, | |
sObjectName: "Account" | |
} | |
}); | |
evt.fire(); | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment