Created
July 9, 2017 18:40
-
-
Save escgeek/47a07c3029ef65d46982d08cab98426b to your computer and use it in GitHub Desktop.
Embed Wave Dashboard in to Visualforce with more than one filter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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