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

# DataViewLoader

- Package: [@gooddata/sdk-ui](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui/index.md)
- Kind: class
- Stability: alpha
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-ui/src/execution/DataViewLoader.tsx

> **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).
> 

DataViewLoader allows you to speficy, load and access data results with convenient series and slices API.

**Signature:**

```typescript
export declare class DataViewLoader 
```

## Properties

| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [filterBy](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui/sdk-ui.dataviewloader/index.md#dataviewloaderfilterby) |  | (...filters: [INullableFilter](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.inullablefilter/index.md)[]) =&gt; [DataViewLoader](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui/sdk-ui.dataviewloader/index.md) | **_(ALPHA)_** Filters to apply on server side. |
| [loadAll](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui/sdk-ui.dataviewloader/index.md#dataviewloaderloadall) |  | () =&gt; Promise&lt;[DataViewFacade](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui/sdk-ui.dataviewfacade/index.md)&gt; | **_(ALPHA)_** Loads all the result data and wraps them in [DataViewFacade](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui/sdk-ui.dataviewfacade/index.md). |
| [loadWindow](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui/sdk-ui.dataviewloader/index.md#dataviewloaderloadwindow) |  | (dataWindow: [DataViewWindow](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui/sdk-ui.dataviewwindow/index.md)) =&gt; Promise&lt;[DataViewFacade](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui/sdk-ui.dataviewfacade/index.md)&gt; | **_(ALPHA)_** Loads subset of the result data and wraps them in [DataViewFacade](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui/sdk-ui.dataviewfacade/index.md). |
| [seriesFrom](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui/sdk-ui.dataviewloader/index.md#dataviewloaderseriesfrom) |  | (...measuresAndScopingAttributes: [IAttributeOrMeasure](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.iattributeormeasure/index.md)[]) =&gt; [DataViewLoader](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui/sdk-ui.dataviewloader/index.md) | **_(ALPHA)_** Data series will be built using the provided measures that are further scoped for elements of the specified attributes. |
| [slicesFrom](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui/sdk-ui.dataviewloader/index.md#dataviewloaderslicesfrom) |  | (...attributes: [IAttribute](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.iattribute/index.md)[]) =&gt; [DataViewLoader](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui/sdk-ui.dataviewloader/index.md) | **_(ALPHA)_** Slice all data series by elements of these attributes. |
| [sortBy](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui/sdk-ui.dataviewloader/index.md#dataviewloadersortby) |  | (...sorts: [ISortItem](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.isortitem/index.md)[]) =&gt; [DataViewLoader](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui/sdk-ui.dataviewloader/index.md) | **_(ALPHA)_** Sorting to apply on server side. |
| [withSignal](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui/sdk-ui.dataviewloader/index.md#dataviewloaderwithsignal) |  | (signal: AbortSignal) =&gt; [DataViewLoader](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui/sdk-ui.dataviewloader/index.md) | **_(ALPHA)_** Runs execution with the provided AbortSignal. |
| [withTotals](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui/sdk-ui.dataviewloader/index.md#dataviewloaderwithtotals) |  | (...totals: [ITotal](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.itotal/index.md)[]) =&gt; [DataViewLoader](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui/sdk-ui.dataviewloader/index.md) | **_(ALPHA)_** Include these totals among the data slices. |

## Property details

### DataViewLoader.filterBy

> **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).
> 

Filters to apply on server side.

**Signature:**

```typescript
filterBy: (...filters: INullableFilter[]) => DataViewLoader;
```

### DataViewLoader.loadAll

> **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).
> 

Loads all the result data and wraps them in [DataViewFacade](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui/sdk-ui.dataviewfacade/index.md).

**Signature:**

```typescript
loadAll: () => Promise<DataViewFacade>;
```

### DataViewLoader.loadWindow

> **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).
> 

Loads subset of the result data and wraps them in [DataViewFacade](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui/sdk-ui.dataviewfacade/index.md).

**Signature:**

```typescript
loadWindow: (dataWindow: DataViewWindow) => Promise<DataViewFacade>;
```

### DataViewLoader.seriesFrom

> **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).
> 

Data series will be built using the provided measures that are further scoped for elements of the specified attributes.

**Signature:**

```typescript
seriesFrom: (...measuresAndScopingAttributes: IAttributeOrMeasure[]) => DataViewLoader;
```

#### Remarks

You must define at least 1 measure for the series.

### DataViewLoader.slicesFrom

> **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).
> 

Slice all data series by elements of these attributes.

**Signature:**

```typescript
slicesFrom: (...attributes: IAttribute[]) => DataViewLoader;
```

### DataViewLoader.sortBy

> **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).
> 

Sorting to apply on server side.

**Signature:**

```typescript
sortBy: (...sorts: ISortItem[]) => DataViewLoader;
```

### DataViewLoader.withSignal

> **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).
> 

Runs execution with the provided AbortSignal.

**Signature:**

```typescript
withSignal: (signal: AbortSignal) => DataViewLoader;
```

### DataViewLoader.withTotals

> **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).
> 

Include these totals among the data slices.

**Signature:**

```typescript
withTotals: (...totals: ITotal[]) => DataViewLoader;
```
