Sql-docs: Filtering widgets to dashboards for specific databases

Created on 30 Apr 2019  Â·  4Comments  Â·  Source: MicrosoftDocs/sql-docs

I'm curious about the "when" property I only want to show queries on databases with a specific name. Any chance I can filter on that my attempts to add a filter for database have met with failure. For example one pattern I tried was "when": "mssql:database=='HealthCheck'",


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

azure-data-studitech product-question sqprod

All 4 comments

@jamesstead - thank you for submitting. We'll take a look.

@jamesstead Took me a bit to figure this out but here are the variables you can use.
https://docs.microsoft.com/en-us/sql/azure-data-studio/extensibility?view=sql-server-2017#dashboard

So in your case this should work.

"when": "databaseName == 'HealthCheck'",

@mtcoope - thanks for jumping in with a reply!
@jamesstead - Since this isn't an actual issue with the article I'm going to close this one. Thanks!

@markingmyname - FYI

Thanks so much this works great @mtcoope

Was this page helpful?
0 / 5 - 0 ratings