+ Start a Discussion
R557R557 

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');This button is used to generate the report. On clicking a record, it's detail page is opening in new tab , but the report data on parent page is lost and i need to hit Generate report again.
    }