---
title: "ViewDisplayMode"
slug: "api/basket/types/viewdisplaymode"
sidebar:
  order: 330
---

<a id="ref-5498e1ba4144"></a>
<a id="ref-6841b34a33e3"></a>
<a id="ref-0644edbeb392"></a>

## Synopsis

```text
enum ViewDisplayMode {
    Undefined,
    Sorted,
    Planning
}
```

The view display mode is the primary mode defining the structure of basket views. The following enumeration values are defined:

**Undefined**

Reserved for internal use.

**Sorted**

This display mode mostly ignores the structure of the basket item tree. Instead it assumes a basket item tree that looks as follows:

- - - The top folder continues to be the top folder.

    - Basket folder items that are not part of a set-article are children of their nearest basket folder item ancestor[^1] that is not part of a set-article either.

    - Main article items that are not part of a set-article and set-article items are children of their nearest basket folder ancestor that is not part of a set-article either.

    - Basket folder items and main article items that are part of a set-article are children of either the set-article item or a basket folder item that is part of the same set-article, whichever is their nearest ancestor in the original basket item tree. If there is no such ancestor, they are children of the set-article item.

    - Sub-article items are children of their main article item.

The actual tree of view items presented to the client may be further modified depending on other view configuration options.

Siblings are sorted according to a configurable sort order. The default sort order is as follows:

1. All folders, sorted by name.

2. All partial plannings and set-articles, sorted by name.

3. All (other) articles, sorted by manufacturer, series, article specification (usually base article number, but may be final article number depending on product data), and description.

Right now there is no web service operation to query or configure the sort order.

**Planning**

The tree of view items reflects more or less the tree of basket items. The only exception are set-article parts that may be hidden depending on view configuration option setArticleMode and the collapsed state of the set-article item.

[^1]: ancestor: parent and ancestors of parent
