Skip to content

Instantly share code, notes, and snippets.

@escgeek
Created July 9, 2017 18:40
Show Gist options
  • Save escgeek/47a07c3029ef65d46982d08cab98426b to your computer and use it in GitHub Desktop.
Save escgeek/47a07c3029ef65d46982d08cab98426b to your computer and use it in GitHub Desktop.
Embed Wave Dashboard in to Visualforce with more than one filter
Here is the code example straight from the documentation that does not work:
filter="{'Sales_YOY': {'Account__c': ['{!Account.Id}']}}"
Here is the code from the 'bug' page that works:
filter="{'datasets':{'Sales_YOY':[{'fields':['Account__c'], 'filter':{'operator': 'matches', 'values':['{!Account.Id}']}}]}}"
Here is the code that works for multiple datasets:
filter="{'datasets':{
'Sales_YOY':[{'fields':['Account__c.Id'], 'filter':{'operator': 'matches', 'values':['{!Account.Id}']}}],
'Sales_Daily':[{'fields':['Account__c.Id'], 'filter':{'operator': 'matches', 'values':['{!Account.Id}']}}],
'Open_Orders':[{'fields':['Account__c.Id'], 'filter':{'operator': 'matches', 'values':['{!Account.Id}']}}]
}}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment