> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# selectEffectiveParameterValuesForWidget()

- Package: [@gooddata/sdk-ui-dashboard](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/index.md)
- Kind: function
- Stability: alpha
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-ui-dashboard/src/model/store/tabs/parameters/parametersSelectors.ts

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Returns the parameter values to inject into the widget's `IExecutionConfig.parameterValues`.

**Signature:**

```typescript
selectEffectiveParameterValuesForWidget: (ref: ObjRef | undefined) => DashboardSelector<IInsightParameterValue[]>
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| ref | [ObjRef](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.objref/index.md) \| undefined |  |

**Returns:**

[DashboardSelector](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.dashboardselector/index.md)&lt;[IInsightParameterValue](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.iinsightparametervalue/index.md)[]&gt;

## Remarks

For each parameter the widget's insight depends on (via the dashboard-wide insight → parameter dependency map), the value is resolved in this order:

1. dashboard chip on the widget's tab with `runtimeOverride !== undefined`, 2. else `insight.parameters` entry for that ref (AD-authored per-insight override), 3. else nothing (backend uses workspace default).

Parameters the widget's insight does not depend on are excluded so that adding/removing unrelated parameters does not invalidate the widget's `defFingerprint`. Returns `[]` when `enableParameters` is off or while the dependency map has not been loaded.
