• Prateek Bharadwaj 1
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 0
    Questions
  • 1
    Replies

Hi Friends, 

I have added an <analytics:reportChart to a visual force page. Im using a filter for the visualforce page to be context aware. This works great in classic and it renders in Lightning as well...
 

<!-- Active credit limit report (stored in S: Embedded reports folder) -->
        <analytics:reportChart reportId="00O25000000Sfwa" cacheResults="false" filter="[{column:'FK_NAME',operator:'equals',value:'{!Credit_Group__c.Name}'}]" size="small"></analytics:reportChart>

... however, in lightning you get a bonus button called "view report". This button is great if it works. The problem i have is that the button open the source report without any filter. This cant happen since the report will suddenly show all records in the database and confuse my users.

a) Is there any way to get the "view report"-button in lightning to actually use the same filter as the graph? 
OR 
b) Anyone have a creative way of hiding/removing the "view report"-button?

Lightning view = 

User-added image

Classic view = 

User-added image
 

Hi Friends, 

I have added an <analytics:reportChart to a visual force page. Im using a filter for the visualforce page to be context aware. This works great in classic and it renders in Lightning as well...
 

<!-- Active credit limit report (stored in S: Embedded reports folder) -->
        <analytics:reportChart reportId="00O25000000Sfwa" cacheResults="false" filter="[{column:'FK_NAME',operator:'equals',value:'{!Credit_Group__c.Name}'}]" size="small"></analytics:reportChart>

... however, in lightning you get a bonus button called "view report". This button is great if it works. The problem i have is that the button open the source report without any filter. This cant happen since the report will suddenly show all records in the database and confuse my users.

a) Is there any way to get the "view report"-button in lightning to actually use the same filter as the graph? 
OR 
b) Anyone have a creative way of hiding/removing the "view report"-button?

Lightning view = 

User-added image

Classic view = 

User-added image