You need to sign in to do that
Don't have an account?

Open Visualforce charts in new window filtered, not in existing visualforce page section
Hi,
I am very new to visualforce and apex and trying to learn!
I have created a page with 4 charts on it which will go on the detail of a custom object. Here is the code so far: -
<apex:page standardController="pse__Proj__c">
<apex:pageBlock >
<apex:pageBlockSection columns="4">
<analytics:reportChart reportId="00Ow0000006woMg"
filter="{column:'FK_NAME',operator:'equals',value:'{!pse__Proj__c.Name}'}"
size="small" cacheResults="false">
</analytics:reportChart>
<analytics:reportChart reportId="00Ow0000006woN0"
filter="{column:'FK_NAME',operator:'equals',value:'{!pse__Proj__c.Name}'}"
size="small" cacheResults="false">
</analytics:reportChart>
<analytics:reportChart reportId="00Ow0000006woMv"
filter="{column:'FK_NAME',operator:'equals',value:'{!pse__Proj__c.Name}'}"
size="small" cacheResults="false">
</analytics:reportChart>
<analytics:reportChart reportId="00O7E000000OJLH"
filter="{column:'CUST_NAME',operator:'equals',value:'{!pse__Proj__c.Name}'}"
size="small" cacheResults="false">
</analytics:reportChart>
</apex:pageblocksection>
</apex:pageBlock>
</apex:page>
This looks good and shows 4 charts in line.
What I am trying to do is if a user clicks on one of the charts it opens the report in a new window (filtered as i've set it). Currently when I click on a chart on the page it opens the report in the existing visualforce window which is annoying
thanks for any help
Nick
I am very new to visualforce and apex and trying to learn!
I have created a page with 4 charts on it which will go on the detail of a custom object. Here is the code so far: -
<apex:page standardController="pse__Proj__c">
<apex:pageBlock >
<apex:pageBlockSection columns="4">
<analytics:reportChart reportId="00Ow0000006woMg"
filter="{column:'FK_NAME',operator:'equals',value:'{!pse__Proj__c.Name}'}"
size="small" cacheResults="false">
</analytics:reportChart>
<analytics:reportChart reportId="00Ow0000006woN0"
filter="{column:'FK_NAME',operator:'equals',value:'{!pse__Proj__c.Name}'}"
size="small" cacheResults="false">
</analytics:reportChart>
<analytics:reportChart reportId="00Ow0000006woMv"
filter="{column:'FK_NAME',operator:'equals',value:'{!pse__Proj__c.Name}'}"
size="small" cacheResults="false">
</analytics:reportChart>
<analytics:reportChart reportId="00O7E000000OJLH"
filter="{column:'CUST_NAME',operator:'equals',value:'{!pse__Proj__c.Name}'}"
size="small" cacheResults="false">
</analytics:reportChart>
</apex:pageblocksection>
</apex:pageBlock>
</apex:page>
This looks good and shows 4 charts in line.
What I am trying to do is if a user clicks on one of the charts it opens the report in a new window (filtered as i've set it). Currently when I click on a chart on the page it opens the report in the existing visualforce window which is annoying
thanks for any help
Nick