Read pfilters in DDX Brick
We have created APP in DOMO and we are using pfilters to load the dashboard as per filters passed like we are passing client id, date range. We had to create DDX Brick as we wanted some custom logic for one card so DOMO suggested to use DDX bricks. We have created a DDX Brick and added card in APP for this Brick.
We have used querying logic on dataset in that brick where we can pass filters, group by, order by etc to query on the dataset associated that brick. Now we want to pass the pfilter of APP to pass to this brick so that APP including this brick card will show data based on the pfilters.
domo.get(stationquery).then(function(data) {});
We tried below option but no luck
var filters = window.pfilters; //Giving undefined all the time
domo.get('/domo/environment').then(function(env) {
console.log('Environment:', env);
});// Giving 400 error
can you please suggest how can I read pfilters of the APP in DDX Brick?
Answers
-
Have you tried leveraging the domo.onFiltersUpdate()?
https://developer.domo.com/portal/e947d87e17547-domo-js#domoondataupdate
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**0 -
@ @We are asking about how to read pfilters applied. Like if we have passed pfilter clientid=123 then we should be able to read like for column name "clientid" filter value "123" applied so that in DDX bricks we can apply same to filter the dataset associated with the brick.
0
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
- 755 Beast Mode
- 61 App Studio
- 41 Variables
- 693 Automate
- 178 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