I'm using custom component with 'Report Summary' standard component in my community page custom component is a button, when click ==> it should set the value of 'recordId ' parameter of Report summary

how can i do this?

I created custom component with this code:

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

    <aura:attribute name="recordId" type="Id" default=""/>
    <aura:attribute name="Id" type="Id" default=""/>

    <table id="listTable" aura:id="listTable" class="listTable" style="" cellspacing="20">
        <td onclick="{!c.orgChart}" style="" class="listCell">By Organisation</td>




    orgChart : function(component, event, helper) {
       var id='00O8E000000TKTx';



chartNavigate : function(id,component) {
        var stateObject = 'test?recordId='+id;
        var url = '/test?recordId='+id;
         history.replaceState({'test':stateObject}, "", url);

       window.onpopstate = function(e){
        document.getElementById("content").innerHTML = e.state.html;
        document.title = e.state.pageTitle;

the result is : the Url in browser is updated with the new recordId but Report Summary component is not updated. please help

  • Can you elaborate more, if possible a code sample would be helpful! – Bhawna Jul 13 '17 at 6:10
  • I edited and added code – sundus Jul 16 '17 at 4:00
  • were you able to figure this out? – Aditya Patil May 9 '18 at 18:39

Your Answer

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

Browse other questions tagged or ask your own question.