I am trying to create a picklist on the page that will list all campaigns in my org. I then want to use the campaign name as a filter in the report chart. It seems like I am way oversimplifying this, what should I be doing here?Thanks so much in advance for any help!John<apex:inputField value="{campaign.name}" id="cmp"/>
<analytics:reportChart reportId="00O40000003Yq4Z" filter="column:'Campaign_TL__c',operator:'equals',value:'cmp'"></analytics:reportChart>
1 answer
Here's an example that filters on accounts. You may try adapting it to campaigns: https://developer.salesforce.com/forums/ForumsMain?id=906F0000000AC5lIAGThis one has more examples: http://peterknolle.com/apex-analytics-api-and-report-chart-component/