1

I've build some Lightning Components and drag-and-dropped them on a Lightning Page which was build via the Lightning App Builder.

  1. How can you navigate from a record detail page to my newly build Lightning Page? I've tried it with a Lightning Component and Lightning Action, but no luck.

  2. Is it possible to pass along the recordId or another parameter to the components that are on that Lightning Page?

0
  1. Your question is not that clear, but in general, if you want to navigate to a lightning component, use force:navigateToComponent, if not - please specify exactly where and what exactly you are trying to achive.
  2. You can pass the record id as a parameter - you need to implement force:hasRecordId and create an attribute <aura:attribute name="recordId" type="Id" access="GLOBAL" /> on your component markup, after that you can use in your component controller the id: var recordId = component.get("v.recordId"); and send the id to a new url or do whatevery you want with it. This is a good explanation for it, and this is a good example.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.