Lightning Component

  • 1
  • Problem
  • Updated 2 months ago
  • In Progress

(1)    Lightning Component in Aura isn’t relaying the record IDs correctly.  The code is below.  What do I need to change here so that it pulls the record ID correctly?

<aura:component implements="force:hasRecordId,flexipage:availableForRecordHome,lightning:actionOverride" access="global">

<skuid:page page="BWMContact__mobileLight" id="{!v.recordId}"/>

</aura:component>
Photo of Allison

Allison

  • 1,158 Points 1k badge 2x thumb

Posted 3 months ago

  • 1
Photo of J.

J., Official Rep

  • 7,470 Points 5k badge 2x thumb
Hi, Allison. Quick question: are you basing that code on this Skuid documentation entry? If so, I think you've just found a issue in our documentation, because that markup needs to be changed slightly. Thank you for finding that, and we'll get it patched up, but in the meantime, does it work if you use this instead?
<aura:component implements="force:hasRecordId,flexipage:availableForRecordHome,lightning:actionOverride" access="global">
    <skuid:page page="BWMContact__mobileLight" recordId="{!v.recordId}"/>
</aura:component>
Basically, swap that id attribute out for recordId.
(Edited)
Photo of Zach McElrath

Zach McElrath, Employee

  • 49,056 Points 20k badge 2x thumb
Allison, I've changed the status back to "In Progress".

Can you explain exactly where this Skuid Page component is being used? You mentioned earlier the "native search in SF" --- can you elaborate on that, perhaps post a screenshot of where you are using the Skuid Page component?
Photo of Allison

Allison

  • 1,158 Points 1k badge 2x thumb
I'm using the Lightning Component as a "Buttons, Links, Action" override for Mobile.  I also tested as a Lighting Experience Override to make sure our issue isn't mobile-specific, but it doesn't work there either.

Photo of Zach McElrath

Zach McElrath, Employee

  • 49,056 Points 20k badge 2x thumb
Thanks Allison. And for completeness, can you post the code for the Lightning Component you are currently using that includes a <skuid:page /> component? 
Photo of Allison

Allison

  • 1,158 Points 1k badge 2x thumb
Yes,

<aura:component implements="force:hasRecordId,flexipage:availableForRecordHome,lightning:actionOverride" access="global">
    <skuid:page page="BWMContact__mobileLight"/> 
</aura:component>
Photo of Allison

Allison

  • 1,158 Points 1k badge 2x thumb
Any luck on this?