Best Of
Re: updated workbench version, now workbench service keeps stopping/failing
Hi @Jbrorby, is there any error message that appears, and is it possible, if you are using your company domain, that the IT policy could be blocking the running of the app now (as it would need to be part of an exceptions list)?
Best to also contact Support [https://domo-support.domo.com/], if you haven't already, for them to better investigate this issue.
amehdad
Re: Is it possible to retrieve Variables when using Bricks?
Thanks, I was talking about the functionality between the two products: Bricks and Variables, so thanks a lot for the clarification. The additional information will certainly come in handy for other use cases.
Re: Is it possible to retrieve Variables when using Bricks?
hello @marcel_luthi .
First I want to clarify for some that might read this thread thinking we are talking about the Variables product.
https://domo-support.domo.com/s/article/7903767835031?language=en_US
Bricks and Custom Apps do NOT work with the Variables product and there is no current workaround. Now when you're not talking about the Domo Variables product, but just talking about a passing data from one brick to another brick or another dashboard, there's one approach that comes to mind. One very common use case is the need to persist filters from one dashboard to another. This is accomplished using a combination of domo.onFiltersUpdate() and appDB.
The steps could look like this:
- The app/brick exists on both Dashboard 1 and Dashboard 2
- The app uses
domo.onFiltersUpdate()(https://developer.domo.com/portal/e947d87e17547-domo-js) to listen for page filters being added/removed on the page - Whenever that listener triggers, you can store the filters in a javascript variable
- Write the data in that variable to an appDB collection
- Navigate to new dashboard
- On initial render, that brick, the same brick that was on the first dashboard, reads from appDB to find the filters that you previously wrote to appDB.
- It then uses
domo.FilterContainer()to apply page filters on the new page
There are other things you'd have to catch and account for, like avoiding a permanent loop of writing to appDB then reading to appDB then applying filters then writing to appDB etc.
Similarly, if you have 2 bricks and you want some action you take in brick 1 to change behavior in brick 2, you can use appDB to pass those values to the other brick.
Here is the appDB documentation: https://developer.domo.com/portal/1l1fm2g0sfm69-app-db-api
Re: Sort by Top 20
@chrissy That is a great question! The easiest way to do this would be using “Limit Rows” located just below the filters on the card analyzer. (pictured below). All you need to do is enter 20 and make sure you have the sorting set to what you desire. Another more complicated option is using a transform (Magic ETL, SQL Dataflow, etc.)
TOccon

