# Plugin Config: ProductStream Auswahlfeld

**URL:** https://forum.shopware.com/t/plugin-config-productstream-auswahlfeld/47127
**Category:** Programmierung
**Created:** [26. Juli 2017 um 13:19 UTC](https://forum.shopware.com/t/plugin-config-productstream-auswahlfeld/47127 "2017-07-26T13:19:17Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![valorian](https://avatars.discourse-cdn.com/v4/letter/v/e36b37/32.png) [@valorian](https://forum.shopware.com/u/valorian)
#### Post date: [26. Juli 2017 um 13:19 UTC](https://forum.shopware.com/t/plugin-config-productstream-auswahlfeld/47127/1 "2017-07-26T13:19:17Z")

</div>

Hallo zusammen,

Ich entwickle gerade ein Plugin, bei dem in der Konfiguration ein Product-Stream ausgewählt werden soll. Dazu habe ich bereits auch folgenden Code um ein solches Auswahlfeld zu erstellen:

```
$this->Form()->setElement(
            'select',
            'stream',
            array(
                'label' => 'Stream',
                'scope' => Shopware\Models\Config\Element::SCOPE_SHOP,
                'store' => 'Shopware.apps.ProductStream.store.Stream',
            )
        );

```

Nun habe ich das Problem, dass dieser Code nur dann funktioniert, wenn der Benutzer vor Aufruf der Plugin-Konfiguration bereits einmal das Fenster mit den Product-Streams geöffnet hatte. Ansonsten ist der passende Store nicht geladen. Gibt es hier eine Möglichkeit ein Laden des Stores in der Plugin-Konfig zu triggern?&nbsp;

Ich möchte nur ungerne wegen einem Feld eine Backend-Erweiterung schreiben müssen.

Vielen Dank schonmal für eure Hilfe.

Grüße,

Valorian
