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.7K Product Ideas
- 1.7K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 292 Workbench
- 4 Cloud Amplifier
- 8 Federated
- 2.8K Transform
- 95 SQL DataFlows
- 602 Datasets
- 2.1K Magic ETL
- 3.7K Visualize
- 2.4K Charting
- 695 Beast Mode
- 43 App Studio
- 39 Variables
- 658 Automate
- 170 Apps
- 441 APIs & Domo Developer
- 42 Workflows
- 5 DomoAI
- 32 Predict
- 12 Jupyter Workspaces
- 20 R & Python Tiles
- 386 Distribute
- 111 Domo Everywhere
- 269 Scheduled Reports
- 6 Software Integrations
- 113 Manage
- 110 Governance & Security
- 8 Domo University
- 30 Product Releases
- Community Forums
- 39 Getting Started
- 29 Community Member Introductions
- 98 Community Announcements
- Domo Community Gallery
- 4.8K Archive