GoodData.UI API reference
  • All Products
  • All Products
  • GoodData.UI
  • API Reference
  • University
  • Community
  • Documentation
  • Support
  • 11.1.0
  • Code samples
  • 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

Parameter

Type

Description

ref

ObjRef

ref of the filter view that must be set as default.

isDefault

boolean

determine 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