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.6K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 102 SQL DataFlows
- 626 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 753 Beast Mode
- 61 App Studio
- 41 Variables
- 692 Automate
- 177 Apps
- 456 APIs & Domo Developer
- 49 Workflows
- 10 DomoAI
- 38 Predict
- 16 Jupyter Workspaces
- 22 R & Python Tiles
- 398 Distribute
- 115 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 130 Manage
- 127 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 11 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 110 Community Announcements
- 4.8K Archive