+ Start a Discussion
Antonino_CupiAntonino_Cupi 

analytics:reportChart in Visualforce Page Report Read Only

Hi All,

I have a Visualforce Page that show a report that I created in my org through the tag "analytics:reportChart". Every user that click on the report on my VF Page can redirect to the link of the report, how can I set the report as read only for every user?  

Thanks,

Antonino 
Best Answer chosen by Antonino_Cupi
Parag Bhatt 10Parag Bhatt 10
Hi Antonino,
You can easily set read only to your "analytics:reportChart" by using steps below:-
just add div element  to your analytics report chart attribute and apply css to it
in css set "pointer-events: none;" and That it !!!

now you will see all  your report chart as read only :)

For more info 
read down code below:-
<apex:page standardController="Account" showHeader="false" >
    <style>
        
        #dispnone{
        pointer-events: none;
        }
    </style>
    <div id="dispnone" >
        <analytics:reportChart cacheAge="10" cacheResults="false" 
                               reportid="00O7F0000070fv6" size="large" 
                               >
        </analytics:reportChart> 
    </div>
    
</apex:page>
It is working as expected :)

Please let us know if this will help you.

Thanks,
Parag Bhatt
 


 

All Answers

SandhyaSandhya (Salesforce Developers) 
Hi,

When you hover over the folder name in the Reports tab, you will see a thumb tack (pin) enabled just to the right of the folder. Click the pin and select Share, then choose 'Viewer" level of access for any individual User, Public Group or Role that needs read only access to the folder.

Please mark it as solved if my reply was helpful. It will make it available for other as the proper solution.
 
Best Regards
Sandhya
 
 
Antonino_CupiAntonino_Cupi
Hi Sandhya,

thank you for reply! I already knew this setting, I would like to know if there is some trick to automatically extend the "view" level to all profiles and users.
Parag Bhatt 10Parag Bhatt 10
Hi Antonino,
You can easily set read only to your "analytics:reportChart" by using steps below:-
just add div element  to your analytics report chart attribute and apply css to it
in css set "pointer-events: none;" and That it !!!

now you will see all  your report chart as read only :)

For more info 
read down code below:-
<apex:page standardController="Account" showHeader="false" >
    <style>
        
        #dispnone{
        pointer-events: none;
        }
    </style>
    <div id="dispnone" >
        <analytics:reportChart cacheAge="10" cacheResults="false" 
                               reportid="00O7F0000070fv6" size="large" 
                               >
        </analytics:reportChart> 
    </div>
    
</apex:page>
It is working as expected :)

Please let us know if this will help you.

Thanks,
Parag Bhatt
 


 
This was selected as the best answer
Antonino_CupiAntonino_Cupi
Thank you Parag!!