# sw-entity-listing mit sw-entity-single-select anstatt "inlineEdit: 'string'"

**URL:** https://forum.shopware.com/t/sw-entity-listing-mit-sw-entity-single-select-anstatt-inlineedit-string/67021
**Category:** Programmierung
**Created:** [18. Mai 2020 um 14:23 UTC](https://forum.shopware.com/t/sw-entity-listing-mit-sw-entity-single-select-anstatt-inlineedit-string/67021 "2020-05-18T14:23:11Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ShopwareUser123](https://avatars.discourse-cdn.com/v4/letter/s/3bc359/32.png) [@ShopwareUser123](https://forum.shopware.com/u/ShopwareUser123)
#### Post date: [18. Mai 2020 um 14:23 UTC](https://forum.shopware.com/t/sw-entity-listing-mit-sw-entity-single-select-anstatt-inlineedit-string/67021/1 "2020-05-18T14:23:11Z")

</div>

Hallo,

Ich habe ein neues CMS-Element erstellt und möchte die Daten im Adminbackend pflegbar machen. Dazu hole ich in der Config des CMS Elements die Daten aus der Datenbank und gib diese&nbsp;jetzt in einem Vue.js component aus (sw-entity-listing).

Das&nbsp;sw-entity-listing Element hat die Eigenschaft “allowInlineEdit” und nimmt laut Doku ( [https://component-library.shopware.com/components/sw-entity-listing](https://component-library.shopware.com/components/sw-entity-listing) ) einen Boolean an.

1. in dem Guide (&nbsp;[https://docs.shopware.com/en/shopware-platform-dev-en/how-to/indepth-guide-bundle/administration?category=shopware-platform-dev-en/how-to/indepth-guide-bundle](https://docs.shopware.com/en/shopware-platform-dev-en/how-to/indepth-guide-bundle/administration?category=shopware-platform-dev-en/how-to/indepth-guide-bundle)&nbsp;) wird in das Feld “inlineEdit”&nbsp;ein String mit dem Wert “string” übergeben.  
{  
property: ‘name’,  
dataIndex: ‘name’,  
label: this.$tc(‘swag-bundle.list.columnName’),  
routerLink: ‘swag.bundle.detail’,  
inlineEdit: ‘string’,  
allowResize: true, primary: true  
}

Ist es möglich einen anderen Wert zu übergeben wie zb “sw-entity-single-select” um ein Entity SingleSelect Field zur Änderung der Zelle zu benutzen&nbsp;? Bzw. ist es auf andere Art und Weise möglich in dem Element&nbsp;sw-entity-listing andere Entitys zu mappen&nbsp;(Many to One Beziehungen). Also anstatt dem “String Editors” ein Select Feld ???  
2. Kann man sonst Events wie&nbsp;onDbClickCell benutzen um ein Single Select Field zu füllen ?

schönen Gruß

---

<div class="post-metadata">

### Author: ![ShopwareUser123](https://avatars.discourse-cdn.com/v4/letter/s/3bc359/32.png) [@ShopwareUser123](https://forum.shopware.com/u/ShopwareUser123)
#### Post date: [19. Mai 2020 um 07:02 UTC](https://forum.shopware.com/t/sw-entity-listing-mit-sw-entity-single-select-anstatt-inlineedit-string/67021/2 "2020-05-19T07:02:32Z")

</div>

Kann ich den Block in&nbsp; **sw-data-grid.html.twig&nbsp;** überschreiben und meine eigene edit Logik einbauen ?

{% block sw\_data\_grid\_columns\_render\_inline\_edit %}  
 :column=„column“  
:compact=„compact“  
:value=„item[column.property]“  
@input=„item[column.property] = $event“\>

{% endblock %}

---

<div class="post-metadata">

### Author: ![ShopwareUser123](https://avatars.discourse-cdn.com/v4/letter/s/3bc359/32.png) [@ShopwareUser123](https://forum.shopware.com/u/ShopwareUser123)
#### Post date: [19. Mai 2020 um 09:40 UTC](https://forum.shopware.com/t/sw-entity-listing-mit-sw-entity-single-select-anstatt-inlineedit-string/67021/3 "2020-05-19T09:40:39Z")

</div>

[https://github.com/shopware/administration/blob/master/Resources/app/administration/src/app/component/data-grid/sw-data-grid-inline-edit/sw-data-grid-inline-edit.html.twig](https://github.com/shopware/administration/blob/master/Resources/app/administration/src/app/component/data-grid/sw-data-grid-inline-edit/sw-data-grid-inline-edit.html.twig)

In der Datei sind alle möglichen Types&nbsp;für das Feld&nbsp;gegeben. Kann ich die Datei selber extenden und einen eigenen Block dazu bauen?

Ich habs versucht mit:

```
{% sw_extends '@Storefront/Resources/app/component/data-grid/sw-data-grid-inline-edit/sw-data-grid-inline-edit.html.twig' %}

{% block sw_data_grid_inline_edit %}
   {{parent()}}
   {{dump()}}

   test
{% endblock %}

```

Es ändert sich aber nichts am Frontend. Ist der Path&nbsp;{% sw\_extends '@Storefront/Reso… eventuell falsch ?

&nbsp;

---

<div class="post-metadata">

### Author: ![mediaciety](https://avatars.discourse-cdn.com/v4/letter/m/ba9def/32.png) [@mediaciety](https://forum.shopware.com/u/mediaciety)
#### Post date: [22. Mai 2020 um 04:30 UTC](https://forum.shopware.com/t/sw-entity-listing-mit-sw-entity-single-select-anstatt-inlineedit-string/67021/4 "2020-05-22T04:30:42Z")

</div>

Da es sich um eine “Admin-Komponente” handelt, versuch doch eher mal

```
{% sw_extends @Administration/..... %}

```

&nbsp;
