Domo Embed Everywhere Help: Filtering
I am attempting to use Domo's new "embed card" feature.
I need to be able to filter on multiple cards at once similar to page filters but with the embedded cards. Is this possible??
Trying to solve this or get a way around it,
1. If I embed a card from a page that has filtered the card, the embedded card does NOT retain the filter from the page even though it recognizes there is a filter.
2. Looking at the source code, I can look into the iframe and see how the filter is changing when I do change it manually. This is not what I want. Can I change this filter value via code or am I forced to manually select every single filter on every single embedded card???
Comments
-
Could someone offer some assistance with this issue?
0 -
i'm wanting to do this also. any ideas?
0 -
I am also interested in this. Page filters can be very powerful and necessary. Do we have a way to embed and have page filters? Really important for custom portals
**Make sure to like any users posts that helped you and accept the ones who solved your issue.**1 -
any updates on this? very key function for us
0 -
I actually got this working by passing some parameters into the embed iframe's src value.
This is what the normal iframe might look like:
<iframe id="domo-data-iframe"
src="https://MYINSTANCE.domo.com/embed/card/444444444?enable=title,summary,drill,filter,picker"
width="600" height="600" marginheight="0" marginwidth="0" frameborder="0" scrolling="no"></iframe>In javascript, you can update the "src" attribute to include filters, like this:var iframe = document.getElementById('domo-data-iframe');
iframe.src='https://MYINSTANCE.domo.com/embed/card/444444444?enable=title,summary,drill,filter,picker&pfilters=' + encodeURIComponent('[{"label":"COMPANYNAME","column":"COMPANYNAME","operand":"IN","values":["123 Partners inc"],"dataSourceId":"12345678-c9a1-48c9-a942-9c333b668954","dataType":"string"}]');It's the same format that the embed card uses when you apply filters to a single card and it sends the update request to Domo that updates the card. With this, you could create a page level filter that loops through and updates the src value for each embed card on the page.3
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 616 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 738 Beast Mode
- 56 App Studio
- 40 Variables
- 685 Automate
- 176 Apps
- 452 APIs & Domo Developer
- 47 Workflows
- 10 DomoAI
- 36 Predict
- 15 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 124 Manage
- 121 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 108 Community Announcements
- 4.8K Archive