You need to sign in to do that
Don't have an account?
R557
Unable to retain details of parent page on clicking a record url in Aura component report
Hi,
I have created a custom table report with Aura component and enabled a cell value to re-direct to record page. On clicking the record, it opens in a new tab but the details of parent page are lost and I have to click ' Generate Report' button again. Pls refer the below code snippet:
//Aura Component----------->
<td role="gridcell" class="slds-cell-wrap tdClass" data-label="Name">
<a href="#" onclick="{!c.navigateToRecord}" value = "TaskId" id = "{!wrap.TaskId}">{!wrap.Subject}</a>
</td>
//Controller.js----------->
navigateToRecord :function(component,event,helper){
helper.redirectToSobject(component,event,helper);
}
//Helper.js-------------->
redirectToSobject: function (component, event, helper) {
var myTaskId = event.target.id;
window.open('/' + myTaskId,'_blank');
}
I have created a custom table report with Aura component and enabled a cell value to re-direct to record page. On clicking the record, it opens in a new tab but the details of parent page are lost and I have to click ' Generate Report' button again. Pls refer the below code snippet:
//Aura Component----------->
<td role="gridcell" class="slds-cell-wrap tdClass" data-label="Name">
<a href="#" onclick="{!c.navigateToRecord}" value = "TaskId" id = "{!wrap.TaskId}">{!wrap.Subject}</a>
</td>
//Controller.js----------->
navigateToRecord :function(component,event,helper){
helper.redirectToSobject(component,event,helper);
}
//Helper.js-------------->
redirectToSobject: function (component, event, helper) {
var myTaskId = event.target.id;
window.open('/' + myTaskId,'_blank');
}