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.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.8K Visualize
- 2.5K Charting
- 737 Beast Mode
- 55 App Studio
- 40 Variables
- 684 Automate
- 176 Apps
- 452 APIs & Domo Developer
- 46 Workflows
- 10 DomoAI
- 35 Predict
- 14 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 123 Manage
- 120 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