function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
John Angerami 16John Angerami 16 

Trying to have Customizable Forecasting Report on VF Page run as current user

I have created a Customizable Forecasting: Forecast Summary Report and graph but it is run as me on the visualforce page.
There is a button on the top that says 'Run as Me' which I need to automatically be clicked when a user is using the visualforce page.

I think I need to adapt the following into my VF code:
Javascript:document.reportuid.value=”;document.report.rid.value=”;document.report.drill.value’user’;document.report.submit();

My VF code is just puling the chart:
            <analytics:reportChart reportId="00O20000007SNcO" size="medium"></analytics:reportChart>