GoodData.UI API reference
  • GoodData.UI
  • Docs & APIs
  • Developers
  • GoodData.CN
  • GoodData.UI
  • Docs & APIs
  • Get GoodData.CN Community Edition
  • 10.26.0
  • Code samples
  • Gallery
  • GitHub

setFilterViewAsDefault()

Home > @gooddata/sdk-backend-spi > IWorkspaceDashboardsService > setFilterViewAsDefault

IWorkspaceDashboardsService.setFilterViewAsDefault() method

This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Set a filter view identified by the provided ref as the default one. The other filter views for the same dashboard that are marked as default ones will be unmarked.

Signature:

setFilterViewAsDefault(ref: ObjRef, isDefault: boolean): Promise<void>;

Parameters

ParameterTypeDescription
refObjRefref of the filter view that must be set as default.
isDefaultbooleandetermine if filter view identified by the provided ref should be marked as a default one. If yes, any existing filter view for the same user and dashboard will be marked as non default as only one can be set as default at the same time.

Returns:

Promise<void>

  • IWorkspaceDashboardsService.setFilterViewAsDefault() method
  • Parameters
GoodData resources:
  • Documentation
Follow the community:
  • Community
Copyright © 2007–2025 GoodData Corporation. All Rights Reserved. Code licensed under a dual license - CC BY‑NC 4.0 for trial experience and GoodData.UI EULA for commercial use