You need to sign in to do that
Don't have an account?
Anand Kumar 280
I want to get the Id of the Parent From the related List View, as I have made aura CMP Which override
NEW button ,when I press New button it redirect me different page , so component.get("v.recordId")
is UNDEFINED.
How to take record id while pressing a overiding button and take it to the component
I want to get the Id of the Parent From the related List View, as I have made aura CMP Which override
NEW button ,when I press New button it redirect me different page , so component.get("v.recordId")
is UNDEFINED.
Try Below Code,
var pageRef = component.get("v.pageReference");
var state = pageRef.state; // state holds any query params
var base64Context = state.inContextOfRef;
if (base64Context.startsWith("1\.")) {
base64Context = base64Context.substring(2);
}
var addressableContext = JSON.parse(window.atob(base64Context));
console.log("addressableContext.attributes.recordId",addressableContext.attributes.recordId);
component.set("v.recordId", addressableContext.attributes.recordId);
All Answers
Try this,
try defining force:recordData tage for main object. define attribute for record Id
for redirecting to another page use this tag:
Thanks
karthik
While not quite as small or wieldy as those devices, Acer last year made ... The idea was to make a gaming laptop that's easy for a college ...Aka.ms/remoteconnect (https://akamsremoteconnect.info/)
Try Below Code,
var pageRef = component.get("v.pageReference");
var state = pageRef.state; // state holds any query params
var base64Context = state.inContextOfRef;
if (base64Context.startsWith("1\.")) {
base64Context = base64Context.substring(2);
}
var addressableContext = JSON.parse(window.atob(base64Context));
console.log("addressableContext.attributes.recordId",addressableContext.attributes.recordId);
component.set("v.recordId", addressableContext.attributes.recordId);